Fix a few typos

This commit is contained in:
Andrei Vagin
2025-01-29 21:16:51 -08:00
parent 8bdf76c5ca
commit f010ae01ac
116 changed files with 189 additions and 182 deletions
@@ -33,7 +33,7 @@ var (
)
// hostInetConn allows reading and writing to a local host socket for hostinet.
// hostInetConn implments proxyConn.
// hostInetConn implements proxyConn.
type hostInetConn struct {
// wq is the WaitQueue registered with fdnotifier for this fd.
wq waiter.Queue
@@ -64,7 +64,7 @@ func TestLocalHostSocket(t *testing.T) {
}
if !slices.Equal(data[:recLen], clientData) {
return fmt.Errorf("server mismatch data recieved: got: %s want: %s", data[:recLen], clientData)
return fmt.Errorf("server mismatch data received: got: %s want: %s", data[:recLen], clientData)
}
sentLen, err := conn.Write(serverData)
+1 -1
View File
@@ -96,7 +96,7 @@ type ProcessProcfsDump struct {
StartTime int64 `json:"clone_ts,omitempty"`
// Root is /proc/[pid]/root.
Root string `json:"root,omitempty"`
// Limits constains resource limits for this process. Currently only
// Limits constrains resource limits for this process. Currently only
// RLIMIT_NOFILE is supported.
Limits map[string]limits.Limit `json:"limits,omitempty"`
// Cgroup is /proc/[pid]/cgroup split into an array.
+1 -1
View File
@@ -1006,7 +1006,7 @@ func (c *containerMounter) mountTmp(ctx context.Context, spec *specs.Spec, conf
for _, m := range c.mounts {
// m.Destination has been cleaned, so it's to use equality here.
if m.Destination == "/tmp" {
log.Debugf(`Explict "/tmp" mount found, skipping internal tmpfs, mount: %+v`, m)
log.Debugf(`Explicit "/tmp" mount found, skipping internal tmpfs, mount: %+v`, m)
return nil
}
}