Skip to content

Commit 3cdf1d8

Browse files
Merge pull request containerd#374 from hqhq/fix_typos
Fix some typos
2 parents 4171ca0 + 3b8eee7 commit 3cdf1d8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

content/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type ContentWriter struct {
2525
// Write p to the transaction.
2626
//
2727
// Note that writes are unbuffered to the backing file. When writing, it is
28-
// recommended to wrap in a bufio.Writer or, preferrably, use io.CopyBuffer.
28+
// recommended to wrap in a bufio.Writer or, preferably, use io.CopyBuffer.
2929
func (cw *ContentWriter) Write(p []byte) (n int, err error) {
3030
n, err = cw.fp.Write(p)
3131
cw.digester.Hash().Write(p[:n])

design/mounts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Mounts
22

3-
Mounts are the main interaction mechansim in containerD. Container systems of
3+
Mounts are the main interaction mechanism in containerd. Container systems of
44
the past typically end up having several disparate components independently
55
perform mounts, resulting in complex lifecycle management and buggy behavior
66
when coordinating large mount stacks.
77

8-
In containerD, we intend to keep mount syscalls isolated to the container
8+
In containerd, we intend to keep mount syscalls isolated to the container
99
runtime component, opting to have various components produce a serialized
1010
representation of the mount. This ensures that the mounts are performed as a
1111
unit and unmounted as a unit.

design/snapshots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ interface.
4545
## Architecture
4646

4747
The _Snapshot Manager_ provides an API for allocating, snapshotting and mounting
48-
abstract, layer-based filesytems. The model works by building up sets of
48+
abstract, layer-based filesystems. The model works by building up sets of
4949
directories with parent-child relationships, known as _Snapshots_.
5050

5151
Every snapshot is represented by an opaque `diff` directory, which acts as a

events/topic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "context"
44

55
type topicKey struct{}
66

7-
// WithTopic returns a context with a new topic set, such that events emmited
7+
// WithTopic returns a context with a new topic set, such that events emitted
88
// from the resulting context will be marked with the topic.
99
//
1010
// A topic groups events by the target module they operate on. This is
@@ -13,7 +13,7 @@ type topicKey struct{}
1313
// When compacting the journal, we can replace all former log entries with a
1414
// summary data structure that will result in the same state.
1515
//
16-
// By providing a compaction mechansim by topic, we can prune down to a data
16+
// By providing a compaction mechanism by topic, we can prune down to a data
1717
// structure oriented towards a single topic, leaving unrelated messages alone.
1818
func WithTopic(ctx context.Context, topic string) context.Context {
1919
return context.WithValue(ctx, topicKey{}, topic)

snapshot/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// Manager provides an API for allocating, snapshotting and mounting
14-
// abstract, layer-based filesytems. The model works by building up sets of
14+
// abstract, layer-based filesystems. The model works by building up sets of
1515
// directories with parent-child relationships.
1616
//
1717
// These differ from the concept of the graphdriver in that the
@@ -203,7 +203,7 @@ func (lm *Manager) Prepare(dst, parent string) ([]containerd.Mount, error) {
203203
}, nil
204204
}
205205

206-
// View behaves identically to Prepare except the result may not be commited
206+
// View behaves identically to Prepare except the result may not be committed
207207
// back to the snappshot manager.
208208
//
209209
// Whether or not these are readonly mounts is implementation specific, but the

0 commit comments

Comments
 (0)