mirror of
https://github.com/golang/go
synced 2024-11-25 00:57:59 -07:00
syscall: Remove obsolete Errstr call from commented-out example.
syscall_windows.go contains a small demo, which calls the obsolete syscall.Errstr function. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/5475044
This commit is contained in:
parent
94b0342f17
commit
5d045fb0f1
@ -27,8 +27,8 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func abort(funcname string, err int) {
|
||||
panic(funcname + " failed: " + syscall.Errstr(err))
|
||||
func abort(funcname string, err error) {
|
||||
panic(funcname + " failed: " + err.Error())
|
||||
}
|
||||
|
||||
func print_version(v uint32) {
|
||||
|
Loading…
Reference in New Issue
Block a user