From: Matthew Dempsky Date: Fri, 24 Jul 2015 21:52:57 +0000 (-0700) Subject: all: cleanup usage of dashes in package documentation X-Git-Tag: go1.5beta3~41 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a01d90744fe5d12ce8b48e7d3c6e67e954a9fe55;p=gostls13.git all: cleanup usage of dashes in package documentation Change-Id: I58453f7ed71eaca15dd3f501e4ae88d1fab19908 Reviewed-on: https://go-review.googlesource.com/12683 Reviewed-by: Josh Bleecher Snyder Reviewed-by: Rob Pike --- diff --git a/src/debug/elf/elf.go b/src/debug/elf/elf.go index 0ead9792be..70daeecd6d 100644 --- a/src/debug/elf/elf.go +++ b/src/debug/elf/elf.go @@ -312,7 +312,7 @@ const ( SHN_HIOS SectionIndex = 0xff3f /* Last operating system-specific. */ SHN_ABS SectionIndex = 0xfff1 /* Absolute values. */ SHN_COMMON SectionIndex = 0xfff2 /* Common data. */ - SHN_XINDEX SectionIndex = 0xffff /* Escape -- index stored elsewhere. */ + SHN_XINDEX SectionIndex = 0xffff /* Escape; index stored elsewhere. */ SHN_HIRESERVE SectionIndex = 0xffff /* Last of reserved range. */ ) diff --git a/src/mime/multipart/writer.go b/src/mime/multipart/writer.go index e13a956afe..80960939d6 100644 --- a/src/mime/multipart/writer.go +++ b/src/mime/multipart/writer.go @@ -39,7 +39,8 @@ func (w *Writer) Boundary() string { // boundary separator with an explicit value. // // SetBoundary must be called before any parts are created, may only -// contain certain ASCII characters, and must be 1-69 bytes long. +// contain certain ASCII characters, and must be non-empty and +// at most 69 bytes long. func (w *Writer) SetBoundary(boundary string) error { if w.lastpart != nil { return errors.New("mime: SetBoundary called after write") diff --git a/src/net/http/request.go b/src/net/http/request.go index f41672210a..31fe45a4ed 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -340,7 +340,7 @@ func valueOrDefault(value, def string) string { // See https://codereview.appspot.com/7532043. const defaultUserAgent = "Go-http-client/1.1" -// Write writes an HTTP/1.1 request -- header and body -- in wire format. +// Write writes an HTTP/1.1 request, which is the header and body, in wire format. // This method consults the following fields of the request: // Host // URL