Commit c5cdda40 authored by Kevin Burke's avatar Kevin Burke Committed by Brad Fitzpatrick

encoding/base64, html/template: fix grammar mistakes

Replace 'does not contains' with 'does not contain' where it appears
in the source code.

Change-Id: Ie7266347c429512c8a41a7e19142afca7ead3922
Reviewed-on: https://go-review.googlesource.com/37887Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent f6393533
...@@ -35,7 +35,7 @@ const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678 ...@@ -35,7 +35,7 @@ const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678
const encodeURL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" const encodeURL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
// NewEncoding returns a new padded Encoding defined by the given alphabet, // NewEncoding returns a new padded Encoding defined by the given alphabet,
// which must be a 64-byte string that does not contains the padding character // which must be a 64-byte string that does not contain the padding character
// or CR / LF ('\r', '\n'). // or CR / LF ('\r', '\n').
// The resulting Encoding uses the default padding character ('='), // The resulting Encoding uses the default padding character ('='),
// which may be changed or disabled via WithPadding. // which may be changed or disabled via WithPadding.
......
...@@ -359,7 +359,7 @@ func TestEscape(t *testing.T) { ...@@ -359,7 +359,7 @@ func TestEscape(t *testing.T) {
{ {
"styleStrEncodedProtocolEncoded", "styleStrEncodedProtocolEncoded",
`<a style="background: '{{"javascript\\3a alert(1337)"}}'">`, `<a style="background: '{{"javascript\\3a alert(1337)"}}'">`,
// The CSS string 'javascript\\3a alert(1337)' does not contains a colon. // The CSS string 'javascript\\3a alert(1337)' does not contain a colon.
`<a style="background: 'javascript\\3a alert\28 1337\29 '">`, `<a style="background: 'javascript\\3a alert\28 1337\29 '">`,
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment