mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
a0da9c00ae
commit
6dd7462a04
6 changed files with 61 additions and 61 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue