From: Alex Brainman Date: Wed, 18 Jan 2012 05:59:40 +0000 (+1100) Subject: os: remove old note about NewSyscallError being special X-Git-Tag: weekly.2012-01-20~65 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=436b37d885d6bf552d16f81a6b75a96aa44b6248;p=gostls13.git os: remove old note about NewSyscallError being special R=golang-dev, r CC=golang-dev https://golang.org/cl/5556044 --- diff --git a/src/pkg/os/error_plan9.go b/src/pkg/os/error_plan9.go index 8f005efbe0..3c727b2ab3 100644 --- a/src/pkg/os/error_plan9.go +++ b/src/pkg/os/error_plan9.go @@ -17,10 +17,6 @@ type SyscallError struct { func (e *SyscallError) Error() string { return e.Syscall + ": " + e.Err } -// Note: If the name of the function NewSyscallError changes, -// pkg/go/doc/doc.go should be adjusted since it hardwires -// this name in a heuristic. - // NewSyscallError returns, as an error, a new SyscallError // with the given system call name and error details. // As a convenience, if err is nil, NewSyscallError returns nil. diff --git a/src/pkg/os/error_posix.go b/src/pkg/os/error_posix.go index ebbe436970..1a08627256 100644 --- a/src/pkg/os/error_posix.go +++ b/src/pkg/os/error_posix.go @@ -59,10 +59,6 @@ type SyscallError struct { func (e *SyscallError) Error() string { return e.Syscall + ": " + e.Errno.Error() } -// Note: If the name of the function NewSyscallError changes, -// pkg/go/doc/doc.go should be adjusted since it hardwires -// this name in a heuristic. - // NewSyscallError returns, as an error, a new SyscallError // with the given system call name and error details. // As a convenience, if err is nil, NewSyscallError returns nil.