aboutsummaryrefslogtreecommitdiff
path: root/cryptobyte/builder.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-04-11 13:06:45 -0400
committerGopher Robot <gobot@golang.org>2022-04-11 22:02:26 +0000
commit7b82a4e95df4499652dca2c0d4185de9fffbdc8f (patch)
tree7c7fe98a006a759abd61e5b0c4e4b7b0a6102e28 /cryptobyte/builder.go
parent5352b09029215197cc109b46f0560d05ffab29db (diff)
downloadgo-x-crypto-7b82a4e95df4499652dca2c0d4185de9fffbdc8f.tar.xz
all: gofmt
Gofmt to update doc comments to the new formatting. For golang/go#51082. Change-Id: I076031b6613691eefbb0f21739366e3fd2011ec9 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/399356 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'cryptobyte/builder.go')
-rw-r--r--cryptobyte/builder.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/cryptobyte/builder.go b/cryptobyte/builder.go
index ca7b1db..c7ded75 100644
--- a/cryptobyte/builder.go
+++ b/cryptobyte/builder.go
@@ -106,13 +106,13 @@ func (b *Builder) AddBytes(v []byte) {
// supplied to them. The child builder passed to the continuation can be used
// to build the content of the length-prefixed sequence. For example:
//
-// parent := cryptobyte.NewBuilder()
-// parent.AddUint8LengthPrefixed(func (child *Builder) {
-// child.AddUint8(42)
-// child.AddUint8LengthPrefixed(func (grandchild *Builder) {
-// grandchild.AddUint8(5)
-// })
-// })
+// parent := cryptobyte.NewBuilder()
+// parent.AddUint8LengthPrefixed(func (child *Builder) {
+// child.AddUint8(42)
+// child.AddUint8LengthPrefixed(func (grandchild *Builder) {
+// grandchild.AddUint8(5)
+// })
+// })
//
// It is an error to write more bytes to the child than allowed by the reserved
// length prefix. After the continuation returns, the child must be considered