Skip to content

Commit

Permalink
Correct spelling of default.
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
  • Loading branch information
Ian Campbell committed Sep 7, 2017
1 parent aa8bd16 commit 128aaf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions spec_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
}
)

func defaltCaps() []string {
func defaultCaps() []string {
return []string{
"CAP_CHOWN",
"CAP_DAC_OVERRIDE",
Expand Down Expand Up @@ -79,10 +79,10 @@ func createDefaultSpec() (*specs.Spec, error) {
GID: 0,
},
Capabilities: &specs.LinuxCapabilities{
Bounding: defaltCaps(),
Permitted: defaltCaps(),
Inheritable: defaltCaps(),
Effective: defaltCaps(),
Bounding: defaultCaps(),
Permitted: defaultCaps(),
Inheritable: defaultCaps(),
Effective: defaultCaps(),
},
Rlimits: []specs.POSIXRlimit{
{
Expand Down
2 changes: 1 addition & 1 deletion spec_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestGenerateSpec(t *testing.T) {
}

// check for matching caps
defaults := defaltCaps()
defaults := defaultCaps()
for _, cl := range [][]string{
s.Process.Capabilities.Bounding,
s.Process.Capabilities.Permitted,
Expand Down

0 comments on commit 128aaf6

Please sign in to comment.