From c8c7a3ff2112a1b17a06fc02633ed7b49a8aebf3 Mon Sep 17 00:00:00 2001 From: yuexiao-wang Date: Tue, 29 Nov 2016 01:21:47 +0800 Subject: [PATCH] Fix some typos Signed-off-by: yuexiao-wang --- cli/command/registry/search.go | 2 +- layer/ro_layer.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/command/registry/search.go b/cli/command/registry/search.go index 124b4ae6cc..bbcedbdd99 100644 --- a/cli/command/registry/search.go +++ b/cli/command/registry/search.go @@ -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) } diff --git a/layer/ro_layer.go b/layer/ro_layer.go index 7c8d233a35..ea07b5b9d0 100644 --- a/layer/ro_layer.go +++ b/layer/ro_layer.go @@ -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) {