Skip to content

Commit 58dfd56

Browse files
author
fate-grand-order
committed
fix some typos for reference/reference.go
Signed-off-by: Helen Chen <chenjg@harmonycloud.cn>
1 parent 26183b3 commit 58dfd56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/reference.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ type Spec struct {
4747

4848
// Object contains the identifier for the remote resource. Classically,
4949
// this is a tag but can refer to anything in a remote. By convention, any
50-
// portion that may be a partial or whole digest will be preceeded by an
51-
// `@`. Anything preceeding the `@` will be referred to as the "tag".
50+
// portion that may be a partial or whole digest will be preceded by an
51+
// `@`. Anything preceding the `@` will be referred to as the "tag".
5252
//
5353
// In practice, we will see this broken down into the following formats:
5454
//
@@ -82,7 +82,7 @@ func Parse(s string) (Spec, error) {
8282
var object string
8383

8484
if idx := splitRe.FindStringIndex(u.Path); idx != nil {
85-
// This allows us to retain the @ to signify digests or shortend digests in
85+
// This allows us to retain the @ to signify digests or shortened digests in
8686
// the object.
8787
object = u.Path[idx[0]:]
8888
if object[:1] == ":" {
@@ -129,7 +129,7 @@ func (r Spec) String() string {
129129
return fmt.Sprintf("%v:%v", r.Locator, r.Object)
130130
}
131131

132-
// SplitObject provides two parts of the object spec, delimiited by an `@`
132+
// SplitObject provides two parts of the object spec, delimited by an `@`
133133
// symbol.
134134
//
135135
// Either may be empty and it is the callers job to validate them

0 commit comments

Comments
 (0)