aboutsummaryrefslogtreecommitdiff
path: root/src/log/slog/internal/buffer/buffer.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/log/slog/internal/buffer/buffer.go')
-rw-r--r--src/log/slog/internal/buffer/buffer.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/log/slog/internal/buffer/buffer.go b/src/log/slog/internal/buffer/buffer.go
index 310ec37d4a..110c6281ab 100644
--- a/src/log/slog/internal/buffer/buffer.go
+++ b/src/log/slog/internal/buffer/buffer.go
@@ -7,7 +7,10 @@ package buffer
import "sync"
-// buffer adapted from go/src/fmt/print.go
+// Buffer is a byte buffer.
+//
+// This implementation is adapted from the unexported type buffer
+// in go/src/fmt/print.go.
type Buffer []byte
// Having an initial size gives a dramatic speedup.