Skip to content

Commit 9fd7daa

Browse files
committed
slog-handler-guide: prose tweak, re-make README
Change-Id: I470379d7ff14e8d3233556d70e499b19736f27a6 Reviewed-on: https://go-review.googlesource.com/c/example/+/515556 Run-TryBot: Jonathan Amsterdam <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Cottrell <[email protected]>
1 parent a16ef21 commit 9fd7daa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

slog-handler-guide/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ so you can see all the log output to debug a crash.
910910

911911
Allocation is often a major cause of a slow system.
912912
The `slog` package already works hard at minimizing allocations.
913-
If your handler does it own allocation, and profiling shows it to be
913+
If your handler does its own allocation, and profiling shows it to be
914914
a problem, then see if you can minimize it.
915915

916916
One simple change you can make is to replace calls to `fmt.Sprintf` or `fmt.Appendf`
@@ -1010,4 +1010,4 @@ there indefinitely, constantly being reused, but with most of its capacity
10101010
wasted.
10111011
The extra memory might never be used again by the handler, and since it was in
10121012
the handler's pool, it might never be garbage-collected for reuse elsewhere.
1013-
We can avoid that situation by keeping large buffers out of the pool.
1013+
We can avoid that situation by excluding large buffers from the pool.

slog-handler-guide/guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,4 +708,4 @@ there indefinitely, constantly being reused, but with most of its capacity
708708
wasted.
709709
The extra memory might never be used again by the handler, and since it was in
710710
the handler's pool, it might never be garbage-collected for reuse elsewhere.
711-
We can avoid that situation by keeping large buffers out of the pool.
711+
We can avoid that situation by excluding large buffers from the pool.

0 commit comments

Comments
 (0)