]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/log/slog/doc.go
log/slog: change XXXCtx functions to XXXContext
[gostls13.git] / src / log / slog / doc.go
index 97c1a0b5ef8e0e41bfb5e7adb140a19dcb6aadca..d7a2bacb896e013e1da8cdec152198d0ca0bc991 100644 (file)
@@ -174,9 +174,9 @@ argument, as do their corresponding top-level functions.
 
 Although the convenience methods on Logger (Info and so on) and the
 corresponding top-level functions do not take a context, the alternatives ending
-in "Ctx" do. For example,
+in "Context" do. For example,
 
-       slog.InfoCtx(ctx, "message")
+       slog.InfoContext(ctx, "message")
 
 It is recommended to pass a context to an output method if one is available.