aboutsummaryrefslogtreecommitdiff
path: root/src/debug/pe
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/pe
parentd856e05d64591d3dec6411e3d86fe325e85eecc5 (diff)
downloadgo-440f7d64048cd94cba669e16fe92137ce6b84073.tar.xz
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/pe')
-rw-r--r--src/debug/pe/file.go4
1 files changed, 2 insertions, 2 deletions
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)
)