Skip to content

all: conform build tag comment to convention

Sebastien Binet requested to merge buildtagcomments into master

Created by: kortschak

I've resisted this for a long time, but it seems that the convention in the Go tree is to have a space between the comment token and the +build (I think this is odd given that the //go: directives are abutted, but the data are there:

~/go [(go1.10.3)*]$ grep -Rl '// +build' | wc -l
936
~/go [(go1.10.3)*]$ grep -Rl '//+build' | wc -l
4

This change conforms all the build tag comments to this convention.

Done by sed -i -e 's|//+build|// +build|' $(grep -l '//+build' -R|grep \.go$).

Please take a look.

Merge request reports