From 40ede1040a8cd681e930eb721783241e36c56bf6 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 3 Oct 2013 16:36:34 -0700 Subject: [PATCH] go.tools/godoc: reverse reversed redirects Make godoc work again for go spec and memory model doc. TBR=rsc CC=golang-dev https://golang.org/cl/14368043 --- godoc/redirect/redirect.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/godoc/redirect/redirect.go b/godoc/redirect/redirect.go index 1ad8d12c..e58771d5 100644 --- a/godoc/redirect/redirect.go +++ b/godoc/redirect/redirect.go @@ -98,11 +98,11 @@ var redirects = map[string]string{ // "/ref/mem": "/doc/mem", // "/ref/spec": "/doc/spec", - // In fact, becuase golang.org pulls some pages from tip, there + // In fact, because golang.org pulls some pages from tip, there // are already links on the main golang.org page pointing at - // the non-existent /doc/spec etc URLs. So redirect the other way. - "/doc/mem": "/ref/mem", - "/doc/spec": "/ref/spec", + // the non-existent /ref/spec etc URLs. So redirect the other way. + "/ref/mem": "/doc/mem", + "/ref/spec": "/doc/spec", "/talks": "http://talks.golang.org", "/tour": "http://tour.golang.org",