]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: gofmt comments
authorzhangyunhao <zhangyunhao@bytedance.com>
Tue, 6 Sep 2022 10:39:52 +0000 (18:39 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 6 Sep 2022 22:14:14 +0000 (22:14 +0000)
Change-Id: I79634efbd8d0189afdfe22e147d63c889e8047ba
Reviewed-on: https://go-review.googlesource.com/c/go/+/427964
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/walk/builtin.go

index 0acac9631b9782c4ae6782a6d0f0bebd6b73897a..7d554947374a273f63cf110a716b56257a030ca5 100644 (file)
@@ -26,20 +26,20 @@ import (
 //
 // For race detector, expand append(src, a [, b]* ) to
 //
-//       init {
-//         s := src
-//         const argc = len(args) - 1
-//         newLen := s.len + argc
-//         if uint(newLen) <= uint(s.cap) {
-//           s = s[:newLen]
-//         } else {
-//           s = growslice(s.ptr, newLen, s.cap, argc, elemType)
-//         }
-//         s[s.len - argc] = a
-//         s[s.len - argc + 1] = b
-//         ...
+//     init {
+//       s := src
+//       const argc = len(args) - 1
+//       newLen := s.len + argc
+//       if uint(newLen) <= uint(s.cap) {
+//         s = s[:newLen]
+//       } else {
+//         s = growslice(s.ptr, newLen, s.cap, argc, elemType)
 //       }
-//       s
+//       s[s.len - argc] = a
+//       s[s.len - argc + 1] = b
+//       ...
+//     }
+//     s
 func walkAppend(n *ir.CallExpr, init *ir.Nodes, dst ir.Node) ir.Node {
        if !ir.SameSafeExpr(dst, n.Args[0]) {
                n.Args[0] = safeExpr(n.Args[0], init)