Skip to content

Commit 4e46ff5

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos
Change-Id: Id2b7fbb263d08103e17d2dc74454071fb3993586 Reviewed-on: https://go-review.googlesource.com/c/example/+/552396 Run-TryBot: shuang cui <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> TryBot-Bypass: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 0349f37 commit 4e46ff5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

internal/cmd/weave/weave.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//
2222
// is output, where PACKAGE is constructed from the module path, the
2323
// base name of the current directory, and the directory of FILENAME.
24-
// This caption can be supressed by putting "-" as the final word of the %include line.
24+
// This caption can be suppressed by putting "-" as the final word of the %include line.
2525
package main
2626

2727
import (

slog-handler-guide/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This document is maintained by Jonathan Amsterdam `[email protected]`.
2626

2727
The standard library’s `log/slog` package has a two-part design.
2828
A "frontend," implemented by the `Logger` type,
29-
gathers stuctured log information like a message, level, and attributes,
29+
gathers structured log information like a message, level, and attributes,
3030
and passes them to a "backend," an implementation of the `Handler` interface.
3131
The package comes with two built-in handlers that usually should be adequate.
3232
But you may need to write your own handler, and that is not always straightforward.
@@ -89,7 +89,7 @@ A logger's `WithGroup` method calls its handler's `WithGroup` method.
8989

9090
We can now talk about the four `Handler` methods in detail.
9191
Along the way, we will write a handler that formats logs using a format
92-
reminsicent of YAML. It will display this log output call:
92+
reminiscent of YAML. It will display this log output call:
9393

9494
logger.Info("hello", "key", 23)
9595

@@ -138,7 +138,7 @@ func New(out io.Writer, opts *Options) *IndentHandler {
138138
```
139139

140140
We'll support only one option, the ability to set a minimum level in order to
141-
supress detailed log output.
141+
suppress detailed log output.
142142
Handlers should always declare this option to be a `slog.Leveler`.
143143
The `slog.Leveler` interface is implemented by both `Level` and `LevelVar`.
144144
A `Level` value is easy for the user to provide,
@@ -839,7 +839,7 @@ Beware of facile claims like "Unix writes are atomic"; the situation is a lot mo
839839
Some handlers have legitimate reasons for keeping state.
840840
For example, a handler might support a `SetLevel` method to change its configured level
841841
dynamically.
842-
Or it might output the time between sucessive calls to `Handle`,
842+
Or it might output the time between successive calls to `Handle`,
843843
which requires a mutable field holding the last output time.
844844
Synchronize all accesses to such fields, both reads and writes.
845845

slog-handler-guide/guide.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This document is maintained by Jonathan Amsterdam `[email protected]`.
1313

1414
The standard library’s `log/slog` package has a two-part design.
1515
A "frontend," implemented by the `Logger` type,
16-
gathers stuctured log information like a message, level, and attributes,
16+
gathers structured log information like a message, level, and attributes,
1717
and passes them to a "backend," an implementation of the `Handler` interface.
1818
The package comes with two built-in handlers that usually should be adequate.
1919
But you may need to write your own handler, and that is not always straightforward.
@@ -76,7 +76,7 @@ A logger's `WithGroup` method calls its handler's `WithGroup` method.
7676

7777
We can now talk about the four `Handler` methods in detail.
7878
Along the way, we will write a handler that formats logs using a format
79-
reminsicent of YAML. It will display this log output call:
79+
reminiscent of YAML. It will display this log output call:
8080

8181
logger.Info("hello", "key", 23)
8282

@@ -100,7 +100,7 @@ and the `New` function that constructs it from an `io.Writer` and options:
100100
%include indenthandler1/indent_handler.go types -
101101

102102
We'll support only one option, the ability to set a minimum level in order to
103-
supress detailed log output.
103+
suppress detailed log output.
104104
Handlers should always declare this option to be a `slog.Leveler`.
105105
The `slog.Leveler` interface is implemented by both `Level` and `LevelVar`.
106106
A `Level` value is easy for the user to provide,
@@ -557,7 +557,7 @@ Beware of facile claims like "Unix writes are atomic"; the situation is a lot mo
557557
Some handlers have legitimate reasons for keeping state.
558558
For example, a handler might support a `SetLevel` method to change its configured level
559559
dynamically.
560-
Or it might output the time between sucessive calls to `Handle`,
560+
Or it might output the time between successive calls to `Handle`,
561561
which requires a mutable field holding the last output time.
562562
Synchronize all accesses to such fields, both reads and writes.
563563

0 commit comments

Comments
 (0)