From 5d045fb0f16ba12cdde5ad9656a71376bece0585 Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Fri, 9 Dec 2011 10:42:34 +1100 Subject: [PATCH] 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 --- src/pkg/syscall/syscall_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/syscall/syscall_windows.go b/src/pkg/syscall/syscall_windows.go index f3025f11553..5f33364704f 100644 --- a/src/pkg/syscall/syscall_windows.go +++ b/src/pkg/syscall/syscall_windows.go @@ -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) {