From: Russ Cox Date: Wed, 13 Jun 2012 20:24:56 +0000 (-0400) Subject: go/build: fix boolean negation X-Git-Tag: go1.1rc2~2934 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=503aa6505e26f7dadf9e115eca186c9c01ff99d9;p=gostls13.git go/build: fix boolean negation !(linux&cgo | darwin&cgo) = (!linux|!cgo) & (!darwin|!cgo) = (!linux&!darwin) | !cgo // new comment ≠ !linux | !darwin | !cgo // old comment Fixes #3726. R=golang-dev, bsiegert CC=golang-dev https://golang.org/cl/6306076 --- diff --git a/src/pkg/go/build/doc.go b/src/pkg/go/build/doc.go index 67c26ac7f4..618eefe9e4 100644 --- a/src/pkg/go/build/doc.go +++ b/src/pkg/go/build/doc.go @@ -100,7 +100,7 @@ // default functionality for other systems, which in this case would // carry the constraint: // -// // +build !linux !darwin !cgo +// // +build !linux,!darwin !cgo // // Naming a file dns_windows.go will cause it to be included only when // building the package for Windows; similarly, math_386.s will be included