all: don't refer to code.google.com/p/go{,-wiki}/
Only documentation / comment changes. Update references to
point to golang.org permalinks or go.googlesource.com/go.
References in historical release notes under doc are left as is.
Change-Id: Icfc14e4998723e2c2d48f9877a91c5abef6794ea
Reviewed-on: https://go-review.googlesource.com/4060
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c
index 3ed194e..5a522ef 100644
--- a/src/cmd/gc/subr.c
+++ b/src/cmd/gc/subr.c
@@ -1211,7 +1211,7 @@
*why = "";
// TODO(rsc,lvd): This behaves poorly in the presence of inlining.
- // https://code.google.com/p/go/issues/detail?id=2795
+ // https://golang.org/issue/2795
if(safemode && importpkg == nil && src != T && src->etype == TUNSAFEPTR) {
yyerror("cannot use unsafe.Pointer");
errorexit();
diff --git a/src/compress/bzip2/bzip2_test.go b/src/compress/bzip2/bzip2_test.go
index fb79d08..77c50df 100644
--- a/src/compress/bzip2/bzip2_test.go
+++ b/src/compress/bzip2/bzip2_test.go
@@ -200,7 +200,7 @@
func BenchmarkDecodeTwain(b *testing.B) { benchmarkDecode(b, twain) }
func TestBufferOverrun(t *testing.T) {
- // Tests https://code.google.com/p/go/issues/detail?id=5747.
+ // Tests https://golang.org/issue/5747.
buffer := bytes.NewReader([]byte(bufferOverrunBase64))
decoder := base64.NewDecoder(base64.StdEncoding, buffer)
decompressor := NewReader(decoder)
@@ -209,7 +209,7 @@
}
func TestOutOfRangeSelector(t *testing.T) {
- // Tests https://code.google.com/p/go/issues/detail?id=8363.
+ // Tests https://golang.org/issue/8363.
buffer := bytes.NewReader(outOfRangeSelector)
decompressor := NewReader(buffer)
// This shouldn't panic.
diff --git a/src/compress/flate/deflate_test.go b/src/compress/flate/deflate_test.go
index 730234c..53bfd26 100644
--- a/src/compress/flate/deflate_test.go
+++ b/src/compress/flate/deflate_test.go
@@ -407,7 +407,7 @@
}
}
-// See http://code.google.com/p/go/issues/detail?id=2508
+// See http://golang.org/issue/2508
func TestRegression2508(t *testing.T) {
if testing.Short() {
t.Logf("test disabled with -short")
diff --git a/src/crypto/tls/handshake_server.go b/src/crypto/tls/handshake_server.go
index a461334..c87da50 100644
--- a/src/crypto/tls/handshake_server.go
+++ b/src/crypto/tls/handshake_server.go
@@ -172,7 +172,7 @@
// Although sending an empty NPN extension is reasonable, Firefox has
// had a bug around this. Best to send nothing at all if
// config.NextProtos is empty. See
- // https://code.google.com/p/go/issues/detail?id=5445.
+ // https://golang.org/issue/5445.
if hs.clientHello.nextProtoNeg && len(config.NextProtos) > 0 {
hs.hello.nextProtoNeg = true
hs.hello.nextProtos = config.NextProtos
diff --git a/src/encoding/xml/read_test.go b/src/encoding/xml/read_test.go
index 01f55d0..7d004dc 100644
--- a/src/encoding/xml/read_test.go
+++ b/src/encoding/xml/read_test.go
@@ -694,7 +694,7 @@
Pea interface{} `xml:"Pea"`
}
-// https://code.google.com/p/go/issues/detail?id=6836
+// https://golang.org/issue/6836
func TestUnmarshalIntoInterface(t *testing.T) {
pod := new(Pod)
pod.Pea = new(Pea)
diff --git a/src/html/template/clone_test.go b/src/html/template/clone_test.go
index e11bff2..5de3bc0 100644
--- a/src/html/template/clone_test.go
+++ b/src/html/template/clone_test.go
@@ -166,7 +166,7 @@
}
}
-// https://code.google.com/p/go/issues/detail?id=5980
+// https://golang.org/issue/5980
func TestFuncMapWorksAfterClone(t *testing.T) {
funcs := FuncMap{"customFunc": func() (string, error) {
return "", errors.New("issue5980")
diff --git a/src/html/template/content_test.go b/src/html/template/content_test.go
index 5f3ffe2..e698328 100644
--- a/src/html/template/content_test.go
+++ b/src/html/template/content_test.go
@@ -260,7 +260,7 @@
}
}
-// https://code.google.com/p/go/issues/detail?id=5982
+// https://golang.org/issue/5982
func TestEscapingNilNonemptyInterfaces(t *testing.T) {
tmpl := Must(New("x").Parse("{{.E}}"))
diff --git a/src/math/all_test.go b/src/math/all_test.go
index 763efb2..0848c50 100644
--- a/src/math/all_test.go
+++ b/src/math/all_test.go
@@ -2606,7 +2606,7 @@
// Check that math constants are accepted by compiler
// and have right value (assumes strconv.ParseFloat works).
-// http://code.google.com/p/go/issues/detail?id=201
+// http://golang.org/issue/201
type floatTest struct {
val interface{}
diff --git a/src/math/big/int_test.go b/src/math/big/int_test.go
index 1418dca..cb8c76b 100644
--- a/src/math/big/int_test.go
+++ b/src/math/big/int_test.go
@@ -655,7 +655,7 @@
"10953742525620032441",
"17908251027575790097",
- // http://code.google.com/p/go/issues/detail?id=638
+ // http://golang.org/issue/638
"18699199384836356663",
"98920366548084643601728869055592650835572950932266967461790948584315647051443",
diff --git a/src/net/hosts_test.go b/src/net/hosts_test.go
index 2fe358e..5bb663b 100644
--- a/src/net/hosts_test.go
+++ b/src/net/hosts_test.go
@@ -53,7 +53,7 @@
hostsPath = p
}
-// https://code.google.com/p/go/issues/detail?id=6646
+// https://golang.org/issue/6646
func TestSingleLineHostsFile(t *testing.T) {
p := hostsPath
hostsPath = "testdata/hosts_singleline"
diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go
index 85d5705..c21b57b 100644
--- a/src/net/http/serve_test.go
+++ b/src/net/http/serve_test.go
@@ -416,7 +416,7 @@
}
}
-// Tests for http://code.google.com/p/go/issues/detail?id=900
+// Tests for http://golang.org/issue/900
func TestMuxRedirectLeadingSlashes(t *testing.T) {
paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"}
for _, path := range paths {
@@ -2124,7 +2124,7 @@
<-conn.closec
}
-// http://code.google.com/p/go/issues/detail?id=5955
+// http://golang.org/issue/5955
// Note that this does not test the "request too large"
// exit path from the http server. This is intentional;
// not sending Connection: close is just a minor wire
diff --git a/src/os/os_test.go b/src/os/os_test.go
index a30a2b0..d26eb9c 100644
--- a/src/os/os_test.go
+++ b/src/os/os_test.go
@@ -922,7 +922,7 @@
if off != tt.out || err != nil {
if e, ok := err.(*PathError); ok && e.Err == syscall.EINVAL && tt.out > 1<<32 {
// Reiserfs rejects the big seeks.
- // http://code.google.com/p/go/issues/detail?id=91
+ // http://golang.org/issue/91
break
}
t.Errorf("#%d: Seek(%v, %v) = %v, %v want %v, nil", i, tt.in, tt.whence, off, err, tt.out)
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go
index c4f74b9..293d316 100644
--- a/src/path/filepath/path_test.go
+++ b/src/path/filepath/path_test.go
@@ -1008,7 +1008,7 @@
}
}
-func TestBug3486(t *testing.T) { // http://code.google.com/p/go/issues/detail?id=3486
+func TestBug3486(t *testing.T) { // http://golang.org/issue/3486
root, err := filepath.EvalSymlinks(runtime.GOROOT() + "/test")
if err != nil {
t.Fatal(err)
diff --git a/src/runtime/compiler.go b/src/runtime/compiler.go
index 562a460..f6edc95 100644
--- a/src/runtime/compiler.go
+++ b/src/runtime/compiler.go
@@ -7,7 +7,7 @@
// Compiler is the name of the compiler toolchain that built the
// running binary. Known toolchains are:
//
-// gc The 5g/6g/8g compiler suite at code.google.com/p/go.
+// gc The 5g/6g/8g compiler suite at go.googlesource.com/go.
// gccgo The gccgo front end, part of the GCC compiler suite.
//
const Compiler = "gc"
diff --git a/src/runtime/malloc1.go b/src/runtime/malloc1.go
index 4d0754b..18d998b 100644
--- a/src/runtime/malloc1.go
+++ b/src/runtime/malloc1.go
@@ -99,7 +99,7 @@
var reserved bool
// limit = runtime.memlimit();
- // See https://code.google.com/p/go/issues/detail?id=5049
+ // See https://golang.org/issue/5049
// TODO(rsc): Fix after 1.1.
limit = 0