diff options
author | Ashish Gandhi <ag@ashishgandhi.org> | 2018-04-17 16:13:04 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-04-17 23:47:44 +0000 |
commit | 86827fd7a16aa4c972d886921c0e63d825ce876d (patch) | |
tree | 523f69f55675736b43fb28dae413a5832ea172ee /src/fmt | |
parent | bf101662642c2585afb957c418b33c0499cf87dd (diff) | |
download | go-git-86827fd7a16aa4c972d886921c0e63d825ce876d.tar.gz |
fmt: make %v doc for compound objects consistent
The documentation for %v behavior for compound objects uses an ellipsis
to indicate indefinite lenght of elements. This is done for struct
fields as well as elements of arrays and slices. This adds the missing
ellipsis for maps.
Change-Id: Ia433387fe189d2daf5095df32085a541458f00a1
Reviewed-on: https://go-review.googlesource.com/107623
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/fmt')
-rw-r--r-- | src/fmt/doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt/doc.go b/src/fmt/doc.go index a8fc4e0c74..f8e4766a65 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -64,7 +64,7 @@ laid out like this: struct: {field0 field1 ...} array, slice: [elem0 elem1 ...] - maps: map[key1:value1 key2:value2] + maps: map[key1:value1 key2:value2 ...] pointer to above: &{}, &[], &map[] Width is specified by an optional decimal number immediately preceding the verb. |