diff options
Diffstat (limited to 'src/cmd/godoc/index.go')
| -rw-r--r-- | src/cmd/godoc/index.go | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/cmd/godoc/index.go b/src/cmd/godoc/index.go index 02ce545b1..9ee9e77b4 100644 --- a/src/cmd/godoc/index.go +++ b/src/cmd/godoc/index.go @@ -127,7 +127,7 @@ func init() {  // makeSpotInfo makes a SpotInfo.  func makeSpotInfo(kind SpotKind, lori int, isIndex bool) SpotInfo {  	// encode lori: bits [4..32) -	x := SpotInfo(lori)<<4; +	x := SpotInfo(lori) << 4;  	if int(x>>4) != lori {  		// lori value doesn't fit - since snippet indices are  		// most certainly always smaller then 1<<28, this can @@ -135,7 +135,7 @@ func makeSpotInfo(kind SpotKind, lori int, isIndex bool) SpotInfo {  		x = 0  	}  	// encode kind: bits [1..4) -	x |= SpotInfo(kind)<<1; +	x |= SpotInfo(kind) << 1;  	// encode isIndex: bit 0  	if isIndex {  		x |= 1 @@ -144,8 +144,8 @@ func makeSpotInfo(kind SpotKind, lori int, isIndex bool) SpotInfo {  } -func (x SpotInfo) Kind() SpotKind	{ return SpotKind(x>>1&7) } -func (x SpotInfo) Lori() int		{ return int(x>>4) } +func (x SpotInfo) Kind() SpotKind	{ return SpotKind(x >> 1 & 7) } +func (x SpotInfo) Lori() int		{ return int(x >> 4) }  func (x SpotInfo) IsIndex() bool	{ return x&1 != 0 } @@ -255,7 +255,7 @@ func newFileRun(h0 *RunList, i, j int) interface{} {  	// reduce the list of Spots into a list of KindRuns  	var h1 RunList; -	h1.Vector.Init(j-i); +	h1.Vector.Init(j - i);  	k := 0;  	for ; i < j; i++ {  		h1.Set(k, h0.At(i).(Spot).Info); | 
