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
00dd2b4a
Commit
00dd2b4a
authored
Aug 16, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builtin: correct description of a closed channel.
R=golang-dev, dvyukov CC=golang-dev
https://golang.org/cl/4896046
parent
43d63893
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
builtin.go
src/pkg/builtin/builtin.go
+3
-3
No files found.
src/pkg/builtin/builtin.go
View file @
00dd2b4a
...
...
@@ -104,10 +104,10 @@ func imag(c ComplexType) FloatType
// bidirectional or send-only. It should be executed only by the sender,
// never the receiver, and has the effect of shutting down the channel after
// the last sent value is received. After the last value has been received
// from a closed channel c,
// from a closed channel c, any receive from c will succeed without
// blocking, returning the zero value for the channel element. The form
// x, ok := <-c
// will set x to the channel element's zero value and ok to false, and select
// clauses involving c will never execute.
// will also set ok to false for a closed channel.
func
close
(
c
chan
<-
Type
)
// The panic built-in function stops normal execution of the current
...
...
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