colornames: update SVG 1.1 spec URL

The Scalable Vector Graphics (SVG) 1.1 specification URL has changed.
The old URL, https://www.w3.org/TR/SVG/, now hosts the SVG 2 spec.
SVG 1.1 spec has moved to https://www.w3.org/TR/SVG11/.

This change makes this package go generate successfully with no diff.

Change-Id: Ifa788b1bb47748610b3adc0ac96692c00bcb3158
Reviewed-on: https://go-review.googlesource.com/c/148566
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Dmitri Shuralyov 2018-11-08 15:06:01 -05:00
parent fe2fa19765
commit 55919307b5

View File

@ -5,7 +5,7 @@
// +build ignore // +build ignore
// This program generates table.go from // This program generates table.go from
// http://www.w3.org/TR/SVG/types.html#ColorKeywords // https://www.w3.org/TR/SVG11/types.html#ColorKeywords
package main package main
import ( import (
@ -165,7 +165,7 @@ func writeColorNames(w io.Writer, m map[string]color.RGBA) {
fmt.Fprintln(w, ")") fmt.Fprintln(w, ")")
} }
const url = "http://www.w3.org/TR/SVG/types.html" const url = "https://www.w3.org/TR/SVG11/types.html"
func main() { func main() {
res, err := http.Get(url) res, err := http.Get(url)