aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-03-31 00:00:19 +0800
committerGopher Robot <gobot@golang.org>2023-04-04 14:20:53 +0000
commitd8d22664c65b0054fc9ea6ba7e945481348fc8fc (patch)
tree4064f3dcc84f382816d6cb50437c6267a1c63f57 /src/debug
parentf62c9701b4bc61da6a5f4db8ef81d816f112430e (diff)
downloadgo-d8d22664c65b0054fc9ea6ba7e945481348fc8fc.tar.xz
all: fix misuses of "a" vs "an"
Fixes the misuse of "a" vs "an", according to English grammatical expectations and using https://www.a-or-an.com/ Change-Id: I53ac724070e3ff3d33c304483fe72c023c7cda47 Reviewed-on: https://go-review.googlesource.com/c/go/+/480536 Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/debug')
-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 f8c922d42e..de4bb9b736 100644
--- a/src/debug/pe/file.go
+++ b/src/debug/pe/file.go
@@ -464,7 +464,7 @@ func (e *FormatError) Error() string {
return "unknown error"
}
-// readOptionalHeader accepts a io.ReadSeeker pointing to optional header in the PE file
+// readOptionalHeader accepts an io.ReadSeeker pointing to optional header in the PE file
// and its size as seen in the file header.
// It parses the given size of bytes and returns optional header. It infers whether the
// bytes being parsed refer to 32 bit or 64 bit version of optional header.
@@ -612,7 +612,7 @@ func readOptionalHeader(r io.ReadSeeker, sz uint16) (any, error) {
}
}
-// readDataDirectories accepts a io.ReadSeeker pointing to data directories in the PE file,
+// readDataDirectories accepts an io.ReadSeeker pointing to data directories in the PE file,
// its size and number of data directories as seen in optional header.
// It parses the given size of bytes and returns given number of data directories.
func readDataDirectories(r io.ReadSeeker, sz uint16, n uint32) ([]DataDirectory, error) {