From 436b37d885d6bf552d16f81a6b75a96aa44b6248 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Wed, 18 Jan 2012 16:59:40 +1100 Subject: [PATCH] os: remove old note about NewSyscallError being special R=golang-dev, r CC=golang-dev https://golang.org/cl/5556044 --- src/pkg/os/error_plan9.go | 4 ---- src/pkg/os/error_posix.go | 4 ---- 2 files changed, 8 deletions(-) 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. -- 2.48.1