all: fix some typos in comment

Change-Id: I40f9866661bad30ee2f4be2e9d0beee54db860b3
Reviewed-on: https://go-review.googlesource.com/c/sys/+/611775
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
cuishuang
2024-09-09 19:33:19 +00:00
committed by Gopher Robot
parent 30de3524c2
commit d58f986c89
14 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ from the generated architecture-specific files listed below, and merge these
into a common file for each OS.
The merge is performed in the following steps:
1. Construct the set of common code that is idential in all architecture-specific files.
1. Construct the set of common code that is identical in all architecture-specific files.
2. Write this common code to the merged file.
3. Remove the common code from all architecture-specific files.
+1 -1
View File
@@ -427,7 +427,7 @@ func filterImports(fileSrc []byte) ([]byte, error) {
}
// merge extracts duplicate code from archFiles and merges it to mergeFile.
// 1. Construct commonSet: the set of code that is idential in all archFiles.
// 1. Construct commonSet: the set of code that is identical in all archFiles.
// 2. Write the code in commonSet to mergedFile.
// 3. Remove the commonSet code from all archFiles.
func merge(mergedFile string, archFiles ...string) error {
+1 -1
View File
@@ -153,7 +153,7 @@ func main() {
b = controlRegsRegex.ReplaceAll(b, []byte("_ [0]uint64"))
// Remove fields that are added by glibc
// Note that this is unstable as the identifers are private.
// Note that this is unstable as the identifiers are private.
removeFieldsRegex := regexp.MustCompile(`X__glibc\S*`)
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
+1 -1
View File
@@ -374,7 +374,7 @@ func processStream(s *bufio.Scanner, asm, go1 *bufio.Writer, m *map[string]int64
}
// Prepare arguments to Syscall.
var args []string
var fargs []string // for call fowarding
var fargs []string // for call forwarding
n := 0
for _, param := range in {
p := parseParam(param)
+1 -1
View File
@@ -360,7 +360,7 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
var status _C_int
var r Pid_t
err = ERESTART
// AIX wait4 may return with ERESTART errno, while the processus is still
// AIX wait4 may return with ERESTART errno, while the process is still
// active.
for err == ERESTART {
r, err = wait4(Pid_t(pid), &status, options, rusage)
+1 -1
View File
@@ -207,7 +207,7 @@ func TestEventPortErrors(t *testing.T) {
defer port.Close()
err = port.AssociatePath(path, stat, unix.FILE_MODIFIED, nil)
if err == nil {
t.Errorf("unexpected success associating nonexistant file")
t.Errorf("unexpected success associating nonexistent file")
}
err = port.DissociatePath(path)
if err == nil {
+2 -2
View File
@@ -3350,7 +3350,7 @@ func TestCreat(t *testing.T) {
t.Fatal("Creat error: Cannot truncate file")
}
if string(b) != string(writeContent) {
t.Fatal("data missmatch: expect ", string(writeContent), " actual: ", string(b))
t.Fatal("data mismatch: expect ", string(writeContent), " actual: ", string(b))
}
// testing file create function
@@ -3375,7 +3375,7 @@ func TestCreat(t *testing.T) {
t.Fatal("Creat error: Cannot truncate file")
}
if string(b) != string(writeContent) {
t.Fatal("data missmatch: expect ", string(writeContent), " actual: ", string(b))
t.Fatal("data mismatch: expect ", string(writeContent), " actual: ", string(b))
}
}
+1 -1
View File
@@ -66,7 +66,7 @@ func TestSysvSharedMemory(t *testing.T) {
}
if runtime.GOOS == "zos" {
// The returned shared memory alligns with the pagesize.
// The returned shared memory aligns with the pagesize.
// If pagesize is not 1024 bytes, the shared memory could be larger
if len(b2) < 1024 {
t.Fatalf("b1 len = %v, less than 1024", len(b2))
+1 -1
View File
@@ -119,7 +119,7 @@ func TestXattr(t *testing.T) {
err = unix.Lsetxattr(s, xattrName, []byte(xattrDataSet), 0)
if err != nil {
// Linux and Android doen't support xattrs on symlinks according
// Linux and Android doesn't support xattrs on symlinks according
// to xattr(7), so just test that we get the proper error.
if (runtime.GOOS != "linux" && runtime.GOOS != "android") || err != unix.EPERM {
t.Fatalf("Lsetxattr: %v", err)