]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/base64, html/template: fix grammar mistakes
authorKevin Burke <kev@inburke.com>
Tue, 7 Mar 2017 17:03:40 +0000 (09:03 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 7 Mar 2017 17:42:45 +0000 (17:42 +0000)
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/37887
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/base64/base64.go
src/html/template/escape_test.go

index be69271d195129ca56bb4c7f0be373c798cfbd9f..5a384315f9665a5d9a62fc89c54c9043449439ee 100644 (file)
@@ -35,7 +35,7 @@ const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678
 const encodeURL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
 
 // 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').
 // The resulting Encoding uses the default padding character ('='),
 // which may be changed or disabled via WithPadding.
index f6ace496e7b214d4d6cb77969f4aceb9370a799d..0c854c31a33617a9d396c290a83b72dfd53196e7 100644 (file)
@@ -359,7 +359,7 @@ func TestEscape(t *testing.T) {
                {
                        "styleStrEncodedProtocolEncoded",
                        `<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 '">`,
                },
                {