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:
parent
7ba458d7d8
commit
f19f6c79e4
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user