Skip to content

Commit f596858

Browse files
committed
fix typos
Signed-off-by: allencloud <[email protected]>
1 parent 4c013a1 commit f596858

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libcontainer/label/label_selinux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func UnreserveLabel(label string) error {
177177
return nil
178178
}
179179

180-
// DupSecOpt takes an process label and returns security options that
180+
// DupSecOpt takes a process label and returns security options that
181181
// can be used to set duplicate labels on future container processes
182182
func DupSecOpt(src string) []string {
183183
return selinux.DupSecOpt(src)

libcontainer/stacktrace/capture_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestCaptureTestFunc(t *testing.T) {
1919
// the first frame is the caller
2020
frame := stack.Frames[0]
2121
if expected := "captureFunc"; frame.Function != expected {
22-
t.Fatalf("expteced function %q but recevied %q", expected, frame.Function)
22+
t.Fatalf("expected function %q but recevied %q", expected, frame.Function)
2323
}
2424
expected := "/runc/libcontainer/stacktrace"
2525
if !strings.HasSuffix(frame.Package, expected) {

0 commit comments

Comments
 (0)