You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# go version
go version devel +5464181 Tue Dec 22 23:26:12 2015 +0000 linux/386
# cat a.go
package main
var g = 10
func mkslice() []byte {
return make([]byte, g, 0)
}
func main() {
mkslice()
}
# go run a.go
panic: runtime error: makeslice: cap out of range
goroutine 1 [running]:
main.main()
/root/src/tcpproxy/a.go:10 +0x4e
exit status 2
#
I expect my mkslice function to be mentioned somewhere in panic output, but no such thing.
Alex
The text was updated successfully, but these errors were encountered:
Running this:
I expect my mkslice function to be mentioned somewhere in panic output, but no such thing.
Alex
The text was updated successfully, but these errors were encountered: