mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix some typos
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
d5dee554ea
commit
c8c7a3ff21
2 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ func runSearch(dockerCli *command.DockerCli, opts searchOptions) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// SearchResultsByStars sorts search results in descending order by number of stars.
|
||||
// searchResultsByStars sorts search results in descending order by number of stars.
|
||||
type searchResultsByStars []registrytypes.SearchResult
|
||||
|
||||
func (r searchResultsByStars) Len() int { return len(r) }
|
||||
|
|
|
@ -21,7 +21,7 @@ type roLayer struct {
|
|||
references map[Layer]struct{}
|
||||
}
|
||||
|
||||
// TarStream for roLayer guarentees that the data that is produced is the exact
|
||||
// TarStream for roLayer guarantees that the data that is produced is the exact
|
||||
// data that the layer was registered with.
|
||||
func (rl *roLayer) TarStream() (io.ReadCloser, error) {
|
||||
r, err := rl.layerStore.store.TarSplitReader(rl.chainID)
|
||||
|
@ -45,7 +45,7 @@ func (rl *roLayer) TarStream() (io.ReadCloser, error) {
|
|||
return rc, nil
|
||||
}
|
||||
|
||||
// TarStreamFrom does not make any guarentees to the correctness of the produced
|
||||
// TarStreamFrom does not make any guarantees to the correctness of the produced
|
||||
// data. As such it should not be used when the layer content must be verified
|
||||
// to be an exact match to the registered layer.
|
||||
func (rl *roLayer) TarStreamFrom(parent ChainID) (io.ReadCloser, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue