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
08a206cc
Commit
08a206cc
authored
Jan 29, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync: a couple of documentation nits.
R=golang-dev, agl1 CC=golang-dev
https://golang.org/cl/4079051
parent
d08df513
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mutex.go
src/pkg/sync/mutex.go
+1
-1
once.go
src/pkg/sync/once.go
+1
-1
No files found.
src/pkg/sync/mutex.go
View file @
08a206cc
...
...
@@ -5,7 +5,7 @@
// The sync package provides basic synchronization primitives
// such as mutual exclusion locks. Other than the Once type,
// most are intended for use by low-level library routines.
// Higher-level synchronization
is better done via channels
// Higher-level synchronization is better done via channels
// and communication.
package
sync
...
...
src/pkg/sync/once.go
View file @
08a206cc
...
...
@@ -13,7 +13,7 @@ type Once struct {
// Do calls the function f if and only if the method is being called for the
// first time with this receiver. In other words, given
// var once Once
// if Do(f) is called multiple times, only the first call will invoke f,
// if
once.
Do(f) is called multiple times, only the first call will invoke f,
// even if f has a different value in each invocation. A new instance of
// Once is required for each function to execute.
//
...
...
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