From 58dfd56ab7f72a598c1665e893c742c49319b6de Mon Sep 17 00:00:00 2001 From: fate-grand-order Date: Tue, 18 Jul 2017 16:10:03 +0800 Subject: [PATCH] fix some typos for reference/reference.go Signed-off-by: Helen Chen --- reference/reference.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/reference.go b/reference/reference.go index 658ff1b25..d31dff523 100644 --- a/reference/reference.go +++ b/reference/reference.go @@ -47,8 +47,8 @@ type Spec struct { // Object contains the identifier for the remote resource. Classically, // this is a tag but can refer to anything in a remote. By convention, any - // portion that may be a partial or whole digest will be preceeded by an - // `@`. Anything preceeding the `@` will be referred to as the "tag". + // portion that may be a partial or whole digest will be preceded by an + // `@`. Anything preceding the `@` will be referred to as the "tag". // // In practice, we will see this broken down into the following formats: // @@ -82,7 +82,7 @@ func Parse(s string) (Spec, error) { var object string if idx := splitRe.FindStringIndex(u.Path); idx != nil { - // This allows us to retain the @ to signify digests or shortend digests in + // This allows us to retain the @ to signify digests or shortened digests in // the object. object = u.Path[idx[0]:] if object[:1] == ":" { @@ -129,7 +129,7 @@ func (r Spec) String() string { return fmt.Sprintf("%v:%v", r.Locator, r.Object) } -// SplitObject provides two parts of the object spec, delimiited by an `@` +// SplitObject provides two parts of the object spec, delimited by an `@` // symbol. // // Either may be empty and it is the callers job to validate them