]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix gofmt error
authorKeith Randall <khr@golang.org>
Tue, 9 Aug 2022 22:40:19 +0000 (15:40 -0700)
committerKeith Randall <khr@google.com>
Wed, 10 Aug 2022 16:27:29 +0000 (16:27 +0000)
Introduced in https://go-review.googlesource.com/c/go/+/419755

Change-Id: I7ca353d495dd7e833e46b3eeb972eac38b3a7a24
Reviewed-on: https://go-review.googlesource.com/c/go/+/422474
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: xie cui <523516579@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/slice.go

index 11b1be48db4e7df88c0e384bb3d853e96c16b639..5c2edd9fe132e2a533433f313ed507d9f2f4e92d 100644 (file)
@@ -130,7 +130,7 @@ func unsafeslice(et *_type, ptr unsafe.Pointer, len int) {
        }
 
        if et.size == 0 {
-               if ptr == nil && len > 0  {
+               if ptr == nil && len > 0 {
                        panicunsafeslicenilptr()
                }
        }