i think the spaces are intentional. a lot of thought has gone into indenting the ...
10 years, 6 months ago
(2013-10-01 19:13:12 UTC)
#2
i think the spaces are intentional. a lot of thought has gone into
indenting the reslicing operator in Go: gofmt will remove spaces
around ":" if both sides are constants ([0:3]) or simple function
calls ([0:len(a)]), but to aid clarity, gofmt will insert spaces
around ":" if there are any arithmetic operations involved. but even
though gofmt will remove spaces if it saw this in real code, it
doesn't touch comments.
On 2013/10/01 19:13:12, aam wrote: > i think the spaces are intentional. a lot of ...
10 years, 6 months ago
(2013-10-03 18:56:32 UTC)
#3
On 2013/10/01 19:13:12, aam wrote:
> i think the spaces are intentional. a lot of thought has gone into
> indenting the reslicing operator in Go: gofmt will remove spaces
> around ":" if both sides are constants ([0:3]) or simple function
> calls ([0:len(a)]), but to aid clarity, gofmt will insert spaces
> around ":" if there are any arithmetic operations involved. but even
> though gofmt will remove spaces if it saw this in real code, it
> doesn't touch comments.
I'm happy to remove the reformatting from the comments - the primary goal was to
add the missing word.
*** Submitted as https://code.google.com/p/go/source/detail?r=e1ddfa430b58 *** spec: fix small typo in comment for example R=golang-dev, mirtchovski, ...
10 years, 6 months ago
(2013-10-03 19:46:05 UTC)
#7
Issue 14227043: code review 14227043: spec: fix small error
(Closed)
Created 10 years, 6 months ago by rh
Modified 10 years, 6 months ago
Reviewers:
Base URL:
Comments: 0