From d8d22664c65b0054fc9ea6ba7e945481348fc8fc Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 31 Mar 2023 00:00:19 +0800 Subject: 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 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/debug/pe/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug') 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) { -- cgit v1.3-5-g9baa