diff options
| author | cui fliter <imcusg@gmail.com> | 2023-10-12 11:49:26 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-10-13 17:10:31 +0000 |
| commit | 6dd7462a04e2ce0a3e91cdb8fd85e98ac62ba0aa (patch) | |
| tree | 40cf538d58215087be49a085f550cae7472a817c /src/strings/builder.go | |
| parent | a0da9c00aeb51261b9845a46fbc9878870884ab6 (diff) | |
| download | go-6dd7462a04e2ce0a3e91cdb8fd85e98ac62ba0aa.tar.xz | |
bytes,strings: add available godoc link
Change-Id: Id9706a783d3321e3706eeee102286522e7968efd
Reviewed-on: https://go-review.googlesource.com/c/go/+/534775
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/strings/builder.go')
| -rw-r--r-- | src/strings/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings/builder.go b/src/strings/builder.go index 299ad51255..189dadb1e7 100644 --- a/src/strings/builder.go +++ b/src/strings/builder.go @@ -10,7 +10,7 @@ import ( "unsafe" ) -// A Builder is used to efficiently build a string using Write methods. +// A Builder is used to efficiently build a string using [Builder.Write] methods. // It minimizes memory copying. The zero value is ready to use. // Do not copy a non-zero Builder. type Builder struct { @@ -57,7 +57,7 @@ func (b *Builder) Len() int { return len(b.buf) } // already written. func (b *Builder) Cap() int { return cap(b.buf) } -// Reset resets the Builder to be empty. +// Reset resets the [Builder] to be empty. func (b *Builder) Reset() { b.addr = nil b.buf = nil |
