Skip to content

Commit

Permalink
ext: misc doc comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Jan 23, 2017
1 parent fb193e1 commit 71a8b54
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ext/imagefmt/aci/aci.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package aci implements an imagefmt.Extractor for appc formatted container
// image layers.
package aci

import (
Expand Down
2 changes: 2 additions & 0 deletions ext/imagefmt/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package docker implements an imagefmt.Extractor for docker formatted
// container image layers.
package docker

import (
Expand Down
6 changes: 3 additions & 3 deletions ext/imagefmt/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Extractor interface {
ExtractFiles(layer io.ReadCloser, filenames []string) (tarutil.FilesMap, error)
}

// RegisterExtractor makes a extractor available by the provided name.
// RegisterExtractor makes an extractor available by the provided name.
//
// If called twice with the same name, the name is blank, or if the provided
// Extractor is nil, this function panics.
Expand All @@ -60,11 +60,11 @@ func RegisterExtractor(name string, d Extractor) {
defer extractorsM.Unlock()

if name == "" {
panic("imagefmt: could not register a extractor with an empty name")
panic("imagefmt: could not register an Extractor with an empty name")
}

if d == nil {
panic("imagefmt: could not register a nil extractor")
panic("imagefmt: could not register a nil Extractor")
}

// Enforce lowercase names, so that they can be reliably be found in a map.
Expand Down
4 changes: 3 additions & 1 deletion ext/versionfmt/dpkg/parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2016 clair authors
// Copyright 2017 clair authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package dpkg implements a versionfmt.Parser for version numbers used in dpkg
// based software packages.
package dpkg

import (
Expand Down
4 changes: 3 additions & 1 deletion ext/versionfmt/rpm/parser.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2016 clair authors
// Copyright 2017 clair authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package rpm implements a versionfmt.Parser for version numbers used in rpm
// based software packages.
package rpm

import (
Expand Down

0 comments on commit 71a8b54

Please sign in to comment.