]> Cypherpunks repositories - gostls13.git/commit
cmd/go: simplify code, reduce allocations.
authorDmitri Shuralyov <shurcooL@gmail.com>
Sun, 11 May 2014 01:06:58 +0000 (18:06 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 11 May 2014 01:06:58 +0000 (18:06 -0700)
commit4118665775dd21b2f244e763bfcccba18902d682
tree8ffe2698739153c96965db1a69b3030844878569
parentd6a1fb0b0c7f148773e02f40f1ef61852e4e6e16
cmd/go: simplify code, reduce allocations.

This is a trivial change to make use of an existing `nl` byte slice
containing a single '\n' character. It's already declared and
used in another place in this file, so it might as well be used
in the other location instead of
a new slice literal. There should be no change in behavior,
aside from potentially less allocations.

This is my first CL, so I wanted to use a simple, hopefully non-controversial,
minor improvement to get more comfortable with golang contribution process.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/97280043
src/cmd/go/list.go