mirror of
https://github.com/golang/go.git
synced 2025-05-20 06:43:26 +00:00
os: remove old note about NewSyscallError being special
R=golang-dev, r CC=golang-dev https://golang.org/cl/5556044
This commit is contained in:
parent
6a5db20d14
commit
436b37d885
@ -17,10 +17,6 @@ type SyscallError struct {
|
|||||||
|
|
||||||
func (e *SyscallError) Error() string { return e.Syscall + ": " + e.Err }
|
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
|
// NewSyscallError returns, as an error, a new SyscallError
|
||||||
// with the given system call name and error details.
|
// with the given system call name and error details.
|
||||||
// As a convenience, if err is nil, NewSyscallError returns nil.
|
// As a convenience, if err is nil, NewSyscallError returns nil.
|
||||||
|
@ -59,10 +59,6 @@ type SyscallError struct {
|
|||||||
|
|
||||||
func (e *SyscallError) Error() string { return e.Syscall + ": " + e.Errno.Error() }
|
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
|
// NewSyscallError returns, as an error, a new SyscallError
|
||||||
// with the given system call name and error details.
|
// with the given system call name and error details.
|
||||||
// As a convenience, if err is nil, NewSyscallError returns nil.
|
// As a convenience, if err is nil, NewSyscallError returns nil.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user