diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-11 17:09:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-12 08:22:44 +0200 |
| commit | c1147c8df73eb61bc9d66e6628e0369e21f28670 (patch) | |
| tree | 1f5f75bf13a32941025c134fdd236fb137cf3181 /sys | |
| parent | 0faffd0438df859fb66236085ac3992735900d26 (diff) | |
all: fix comments format
Fix capitalization, dots at the end
and two spaces after a period.
Update #1876
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/akaros/init.go | 2 | ||||
| -rw-r--r-- | sys/linux/init.go | 4 | ||||
| -rw-r--r-- | sys/targets/targets.go | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/akaros/init.go b/sys/akaros/init.go index c669cedef..fa987eb7a 100644 --- a/sys/akaros/init.go +++ b/sys/akaros/init.go @@ -26,7 +26,7 @@ func (arch *arch) Neutralize(c *prog.Call) { c.Args[3].(*prog.ConstArg).Val |= arch.MAP_FIXED case "provision": if pid, ok := c.Args[0].(*prog.ConstArg); ok && uint32(pid.Val) == ^uint32(0) { - // pid -1 causes some debugging splat on console. + // PID -1 causes some debugging splat on console. pid.Val = 0 } } diff --git a/sys/linux/init.go b/sys/linux/init.go index 1cfac43fb..f7525583b 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -288,7 +288,7 @@ func (arch *arch) generateTimespec(g *prog.Gen, typ0 prog.Type, dir prog.Dir, ol prog.MakeResultArg(typ.Fields[1].Type, dir, nil, 0), }) case g.NOutOf(1, 3): - // Few ms ahead for relative, past for absolute + // Few ms ahead for relative, past for absolute. nsec := timeout1 * 1e6 if g.NOutOf(1, 2) { nsec = timeout2 * 1e6 @@ -301,7 +301,7 @@ func (arch *arch) generateTimespec(g *prog.Gen, typ0 prog.Type, dir prog.Dir, ol prog.MakeResultArg(typ.Fields[1].Type, dir, nil, nsec), }) case g.NOutOf(1, 2): - // Unreachable fututre for both relative and absolute + // Unreachable fututre for both relative and absolute. arg = prog.MakeGroupArg(typ, dir, []prog.Arg{ prog.MakeResultArg(typ.Fields[0].Type, dir, nil, 2e9), prog.MakeResultArg(typ.Fields[1].Type, dir, nil, 0), diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 1bc670cbe..e0a049a09 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -89,7 +89,7 @@ var List = map[string]map[string]*Target{ "64": { PtrSize: 8, PageSize: 4 << 10, - // Compile with -no-pie due to issues with ASan + ASLR on ppc64le + // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. CFlags: []string{"-m64", "-fsanitize=address", "-no-pie"}, osCommon: osCommon{ SyscallNumbers: true, @@ -102,7 +102,7 @@ var List = map[string]map[string]*Target{ "64_fork": { PtrSize: 8, PageSize: 8 << 10, - // Compile with -no-pie due to issues with ASan + ASLR on ppc64le + // Compile with -no-pie due to issues with ASan + ASLR on ppc64le. CFlags: []string{"-m64", "-fsanitize=address", "-no-pie"}, osCommon: osCommon{ SyscallNumbers: true, |
