1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:14:42 -07:00

runtime: fix gofmt error

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>
This commit is contained in:
Keith Randall 2022-08-09 15:40:19 -07:00 committed by Keith Randall
parent 7ba458d7d8
commit f19f6c79e4

View 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()
}
}