aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2019-11-15 19:49:30 +0000
committerIan Lance Taylor <iant@golang.org>2019-11-15 21:04:43 +0000
commit440f7d64048cd94cba669e16fe92137ce6b84073 (patch)
tree29b5d5240c55d6065b8341c2dd25ac84ca09f4a2 /src/debug
parentd856e05d64591d3dec6411e3d86fe325e85eecc5 (diff)
downloadgo-440f7d64048cd94cba669e16fe92137ce6b84073.tar.gz
go-440f7d64048cd94cba669e16fe92137ce6b84073.zip
all: fix a bunch of misspellings
Change-Id: I5b909df0fd048cd66c5a27fca1b06466d3bcaac7 GitHub-Last-Rev: 778c5d21311abee09a5fbda2e4005a5fd4cc3f9f GitHub-Pull-Request: golang/go#35624 Reviewed-on: https://go-review.googlesource.com/c/go/+/207421 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/elf/file_test.go2
-rw-r--r--src/debug/pe/file.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/elf/file_test.go b/src/debug/elf/file_test.go
index 42e575e182..b13d13ebf0 100644
--- a/src/debug/elf/file_test.go
+++ b/src/debug/elf/file_test.go
@@ -818,6 +818,6 @@ func TestIssue10996(t *testing.T) {
"0000")
_, err := NewFile(bytes.NewReader(data))
if err == nil {
- t.Fatalf("opening invalid ELF file unexpectedly suceeded")
+ t.Fatalf("opening invalid ELF file unexpectedly succeeded")
}
}
diff --git a/src/debug/pe/file.go b/src/debug/pe/file.go
index 14ad245224..7d763fff19 100644
--- a/src/debug/pe/file.go
+++ b/src/debug/pe/file.go
@@ -475,7 +475,7 @@ func readOptionalHeader(r io.ReadSeeker, sz uint16) (interface{}, error) {
var (
oh32 OptionalHeader32
// There can be 0 or more data directories. So the minimum size of optional
- // header is calculated by substracting oh32.DataDirectory size from oh32 size.
+ // header is calculated by subtracting oh32.DataDirectory size from oh32 size.
oh32MinSz = binary.Size(oh32) - binary.Size(oh32.DataDirectory)
)
@@ -529,7 +529,7 @@ func readOptionalHeader(r io.ReadSeeker, sz uint16) (interface{}, error) {
var (
oh64 OptionalHeader64
// There can be 0 or more data directories. So the minimum size of optional
- // header is calculated by substracting oh64.DataDirectory size from oh64 size.
+ // header is calculated by subtracting oh64.DataDirectory size from oh64 size.
oh64MinSz = binary.Size(oh64) - binary.Size(oh64.DataDirectory)
)