Skip to content

Commit 1332827

Browse files
committed
Fix a few typos
1 parent 8bdf76c commit 1332827

File tree

116 files changed

+188
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+188
-181
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = ./.git,tags,go.mod,go.sum,./test/image/latin10k.txt,./website/assets/images
3+
ignore-words-list = savable,adin

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ endif
9797
##
9898
## Development helpers and tooling.
9999
##
100-
## These targets faciliate local development by automatically
100+
## These targets facilitate local development by automatically
101101
## installing and configuring a runtime. Several variables may
102102
## be used here to tweak the installation:
103103
## RUNTIME - The name of the installed runtime (default: $BRANCH_NAME).
@@ -755,3 +755,7 @@ release: $(RELEASE_KEY) $(RELEASE_ARTIFACTS)/$(ARCH)
755755
tag: ## Creates and pushes a release tag.
756756
@tools/tag_release.sh "$(RELEASE_COMMIT)" "$(RELEASE_NAME)" "$(RELEASE_NOTES)"
757757
.PHONY: tag
758+
759+
codespell:
760+
codespell
761+
.PHONY: codespell

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file"
33

44
# Root certificates.
55
#
6-
# Note that the sha256 hash is ommitted here intentionally. This should not be
6+
# Note that the sha256 hash is omitted here intentionally. This should not be
77
# used in any part of the build other than as certificates present in images.
88
http_file(
99
name = "google_root_pem",

pkg/sentry/kernel/auth/capability_set_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"gvisor.dev/gvisor/pkg/errors/linuxerr"
2323
)
2424

25-
// capsEquals returns trun when the given creds' capabilities match the given caps.
25+
// capsEquals returns true when the given creds' capabilities match the given caps.
2626
func capsEquals(creds *Credentials, caps TaskCapabilities) bool {
2727
return creds.PermittedCaps == caps.PermittedCaps &&
2828
creds.InheritableCaps == caps.InheritableCaps &&

pkg/sentry/kernel/kernel_restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Saver interface {
3030
// +stateify savable
3131
type CheckpointGeneration struct {
3232
// Count is incremented every time a checkpoint is triggered, even if the
33-
// chekpoint failed.
33+
// checkpoint failed.
3434
Count uint32
3535
// Restore indicates if the current instance resumed after the checkpoint or
3636
// it was restored from a checkpoint.

pkg/sentry/platform/platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ type Context interface {
273273
// Release() releases any resources associated with this context.
274274
Release()
275275

276-
// PrepareSleep() is called when the tread switches to the
276+
// PrepareSleep() is called when the thread switches to the
277277
// interruptible sleep state.
278278
PrepareSleep()
279279
}

pkg/sentry/seccheck/sinks/remote/test/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (s *Server) Count() int {
8080
return len(s.points)
8181
}
8282

83-
// Reset throws aways all points received so far and returns the number of
83+
// Reset throws away all points received so far and returns the number of
8484
// points discarded.
8585
func (s *Server) Reset() int {
8686
s.cond.L.Lock()

pkg/sentry/socket/netlink/route/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (p *Protocol) getLink(ctx context.Context, s *netlink.Socket, msg *nlmsg.Me
162162
return nil
163163
}
164164

165-
// newLink handles RTM_NEWLINK reqeusts.
165+
// newLink handles RTM_NEWLINK requests.
166166
func (p *Protocol) newLink(ctx context.Context, s *netlink.Socket, msg *nlmsg.Message, ms *nlmsg.MessageSet) *syserr.Error {
167167
stack := s.Stack()
168168
if stack == nil {

pkg/sentry/socket/netstack/stack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (s *Stack) SetInterface(ctx context.Context, msg *nlmsg.Message) *syserr.Er
184184
}
185185

186186
func (s *Stack) setLink(ctx context.Context, id tcpip.NICID, linkAttrs map[uint16]nlmsg.BytesView) *syserr.Error {
187-
// IFLA_NET_NS_FD has to be handled first, because other parameters may be reseted.
187+
// IFLA_NET_NS_FD has to be handled first, because other parameters may be reset.
188188
if v, ok := linkAttrs[linux.IFLA_NET_NS_FD]; ok {
189189
fd, ok := v.Uint32()
190190
if !ok {

pkg/sentry/socket/plugin/stack/notifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (n *Notifier) UpdateFD(fd uint32) {
9999
// object. Once notifications arrive, they are dispatched to the
100100
// registered queue.
101101
func (n *Notifier) waitAndNotify(ioInit chan int32) error {
102-
// plugin stack leverages TLS varaibles, so bind this goroutine with
102+
// plugin stack leverages TLS variables, so bind this goroutine with
103103
// one specific OS thread
104104
runtime.LockOSThread()
105105

0 commit comments

Comments
 (0)