Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Stiemerling
Go
Commits
eb7d5696
Commit
eb7d5696
authored
12 years ago
by
Nigel Tao
Browse files
Options
Downloads
Patches
Plain Diff
os: fix documentation typos: s/an array/a slice/.
R=dsymonds CC=golang-dev
https://golang.org/cl/6736057
parent
2e67dd86
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pkg/os/doc.go
+1
-1
1 addition, 1 deletion
src/pkg/os/doc.go
src/pkg/os/file.go
+1
-1
1 addition, 1 deletion
src/pkg/os/file.go
with
2 additions
and
2 deletions
src/pkg/os/doc.go
+
1
−
1
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.
//
...
...
This diff is collapsed.
Click to expand it.
src/pkg/os/file.go
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment