]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some typos
authorkijimaD <norimaking777@gmail.com>
Wed, 5 Oct 2022 12:56:46 +0000 (12:56 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 6 Oct 2022 02:49:55 +0000 (02:49 +0000)
Change-Id: I6be77e7b7c919f26bed7b6690cce6741888ba78a
GitHub-Last-Rev: 4ef4a7b425d0b89adf398a1bee04e9f7495813bc
GitHub-Pull-Request: golang/go#56051
Reviewed-on: https://go-review.googlesource.com/c/go/+/438991
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/go/scanner/scanner_test.go
src/os/str.go

index d31b34a4a0579390d5c3e11d21dd4df7f6e25b02..4f320ee9f7ac22f8339e697e528e19e32a8bc577 100644 (file)
@@ -666,7 +666,7 @@ func TestInit(t *testing.T) {
        }
 }
 
-func TestStdErrorHander(t *testing.T) {
+func TestStdErrorHandler(t *testing.T) {
        const src = "@\n" + // illegal character, cause an error
                "@ @\n" + // two errors on the same line
                "//line File2:20\n" +
index 35643e0d2f1bfa98da184063a52b2e2877f56295..242c945caf5fdffc4c773d798ad013e7eee59617 100644 (file)
@@ -6,7 +6,7 @@
 
 package os
 
-// itox converts val (an int) to a hexdecimal string.
+// itox converts val (an int) to a hexadecimal string.
 func itox(val int) string {
        if val < 0 {
                return "-" + uitox(uint(-val))
@@ -16,7 +16,7 @@ func itox(val int) string {
 
 const hex = "0123456789abcdef"
 
-// uitox converts val (a uint) to a hexdecimal string.
+// uitox converts val (a uint) to a hexadecimal string.
 func uitox(val uint) string {
        if val == 0 { // avoid string allocation
                return "0x0"