Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding/gob: missed word in doc #4100

Closed
kortschak opened this issue Sep 18, 2012 · 2 comments
Closed

encoding/gob: missed word in doc #4100

kortschak opened this issue Sep 18, 2012 · 2 comments
Assignees

Comments

@kortschak
Copy link
Contributor

@kortschak kortschak commented Sep 18, 2012

Present in tip:

Maps are sent as an unsigned count followed by that many key, element pairs. Empty but
non-nil maps are sent, so if the sender has allocated a map, the receiver will allocate
a map even no elements are transmitted.

Suggested change:
diff -r 86c06191bea6 src/pkg/encoding/gob/doc.go
--- a/src/pkg/encoding/gob/doc.go   Wed Sep 19 07:04:12 2012 +0900
+++ b/src/pkg/encoding/gob/doc.go   Wed Sep 19 09:20:47 2012 +0930
@@ -118,7 +118,7 @@
 
 Maps are sent as an unsigned count followed by that many key, element
 pairs. Empty but non-nil maps are sent, so if the sender has allocated
-a map, the receiver will allocate a map even no elements are
+a map, the receiver will allocate a map even if no elements are
 transmitted.
 
 Structs are sent as a sequence of (field number, field value) pairs.  The field

NB: Note that zero is singular. (May vary by locale).
@griesemer
Copy link
Contributor

@griesemer griesemer commented Sep 19, 2012

Comment 1:

http://golang.org/cl/6535055

Owner changed to @griesemer.

Status changed to Accepted.

@griesemer
Copy link
Contributor

@griesemer griesemer commented Sep 19, 2012

Comment 2:

This issue was closed by revision 93195e1.

Status changed to Fixed.

@mikioh mikioh changed the title missed word in gob doc encoding/gob: missed word in doc Feb 26, 2015
griesemer added a commit that referenced this issue May 11, 2015
««« backport ee8276dbea49
encoding/gob: fix comment

Fixes #4100.

R=adg, r, dave
CC=golang-dev
https://golang.org/cl/6535055

»»»
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.