Merge pull request #2612 from nashasha1/fix/contrib-typo

Fix typo in contirb dir
This commit is contained in:
Michael Crosby 2018-09-07 07:52:14 -04:00 committed by GitHub
commit 55952ad087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ import (
const nvidiaCLI = "nvidia-container-cli" const nvidiaCLI = "nvidia-container-cli"
// Capability specifies capabilities for the gpu inside the container // Capability specifies capabilities for the gpu inside the container
// Detailed explaination of options can be found: // Detailed explanation of options can be found:
// https://github.com/nvidia/nvidia-container-runtime#supported-driver-capabilities // https://github.com/nvidia/nvidia-container-runtime#supported-driver-capabilities
type Capability string type Capability string

View File

@ -30,7 +30,7 @@ import (
) )
// WithProfile receives the name of a file stored on disk comprising a json // WithProfile receives the name of a file stored on disk comprising a json
// formated seccomp profile, as specified by the opencontainers/runtime-spec. // formatted seccomp profile, as specified by the opencontainers/runtime-spec.
// The profile is read from the file, unmarshaled, and set to the spec. // The profile is read from the file, unmarshaled, and set to the spec.
func WithProfile(profile string) oci.SpecOpts { func WithProfile(profile string) oci.SpecOpts {
return func(_ context.Context, _ oci.Client, _ *containers.Container, s *specs.Spec) error { return func(_ context.Context, _ oci.Client, _ *containers.Container, s *specs.Spec) error {

View File

@ -117,7 +117,7 @@ func (r dockerFetcher) open(ctx context.Context, u, mediatype string, offset int
} }
} else { } else {
// TODO: Should any cases where use of content range // TODO: Should any cases where use of content range
// without the proper header be considerd? // without the proper header be considered?
// 206 responses? // 206 responses?
// Discard up to offset // Discard up to offset

View File

@ -134,7 +134,7 @@ func (hrs *httpReadSeeker) reader() (io.Reader, error) {
// There is an edge case here where offset == size of the content. If // There is an edge case here where offset == size of the content. If
// we seek, we will probably get an error for content that cannot be // we seek, we will probably get an error for content that cannot be
// sought (?). In that case, we should err on committing the content, // sought (?). In that case, we should err on committing the content,
// as the length is already satisified but we just return the empty // as the length is already satisfied but we just return the empty
// reader instead. // reader instead.
hrs.rc = ioutil.NopCloser(bytes.NewReader([]byte{})) hrs.rc = ioutil.NopCloser(bytes.NewReader([]byte{}))