Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
eb7d5696
Commit
eb7d5696
authored
Oct 22, 2012
by
Nigel Tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: fix documentation typos: s/an array/a slice/.
R=dsymonds CC=golang-dev
https://golang.org/cl/6736057
parent
2e67dd86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
doc.go
src/pkg/os/doc.go
+1
-1
file.go
src/pkg/os/file.go
+1
-1
No files found.
src/pkg/os/doc.go
View file @
eb7d5696
...
...
@@ -89,7 +89,7 @@ func Hostname() (name string, err error) {
}
// Readdir reads the contents of the directory associated with file and
// returns a
n array
of up to n FileInfo values, as would be returned
// returns a
slice
of up to n FileInfo values, as would be returned
// by Lstat, in directory order. Subsequent calls on the same file will yield
// further FileInfos.
//
...
...
src/pkg/os/file.go
View file @
eb7d5696
...
...
@@ -185,7 +185,7 @@ func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
}
// WriteString is like Write, but writes the contents of string s rather than
// a
n array
of bytes.
// a
slice
of bytes.
func
(
f
*
File
)
WriteString
(
s
string
)
(
ret
int
,
err
error
)
{
if
f
==
nil
{
return
0
,
ErrInvalid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment