summaryrefslogtreecommitdiff
path: root/src/builtin
Commit message (Collapse)AuthorAgeFilesLines
* builtin: use type aliases for rune and byteBrad Fitzpatrick2017-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | As motivated by https://golang.org/design/18130-type-alias which says: https://github.com/golang/proposal/blob/master/design/18130-type-alias.md#relationship-to-byte-and-rune > The language specification already defines byte as an alias for > uint8 and similarly rune as an alias for int32, using the word alias > as an informal term. It is a goal that the new type declaration > semantics not introduce a different meaning for alias. That is, it > should be possible to describe the existing meanings of byte and > uint8 by saying that they behave as if predefined by: > > type byte = uint8 > type rune = int32 So, do that. Seems to work. Updates #18130 Change-Id: I0740bab3f8fb23e946f3542fdbe819007a99465a Reviewed-on: https://go-review.googlesource.com/45017 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
* builtin: fix signature of the builtin function makeBrad Fitzpatrick2017-05-131-1/+1
| | | | | | | | | | Fixes #20325 Change-Id: Ie363fef73d0deae40af41ee3f4403ad18546eba6 Reviewed-on: https://go-review.googlesource.com/43460 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
* builtin: clarify that make(map[K]V, n) allocates space for n elementsIan Lance Taylor2016-09-101-2/+2
| | | | | | | Change-Id: Id6265b6093edaa4be2c59e4799351082f7228b5d Reviewed-on: https://go-review.googlesource.com/28815 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Rob Pike <r@golang.org>
* builtin: remove errant space in hyphenated adjective phraseBrad Fitzpatrick2015-06-281-4/+4
| | | | | | Change-Id: I67947e0e3189093e830120941ee49f9f32086f0e Reviewed-on: https://go-review.googlesource.com/11615 Reviewed-by: Rob Pike <r@golang.org>
* build: move package sources from src/pkg to srcRuss Cox2014-09-081-0/+256
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.