Skip to content

Commit 2666081

Browse files
committed
cue/interpreter/embed: fix "glob" typo
It's "glob pattern", not "gob pattern". Signed-off-by: Daniel Martí <[email protected]> Change-Id: I0cd10bb7029135b076fdb4e82f44d3f2f4883ba7 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1213975 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
1 parent b6d7332 commit 2666081

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/cue/cmd/testdata/script/embed_nomatch.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cmp stderr stderr.golden
66

77
-- stderr.golden --
8-
@embed: no matches for gob pattern "*.json":
8+
@embed: no matches for glob pattern "*.json":
99
./test.cue:5:6
1010
-- cue.mod/module.cue --
1111
module: "cue.example"

cmd/cue/cmd/testdata/script/embed_windows.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ globStar: {
3131
}
3232
globEscapeStar: "star/*.json": x: "to be reused for more names"
3333
-- out/stderr-windows --
34-
@embed: no matches for gob pattern "star/\\**":
34+
@embed: no matches for glob pattern "star/\\**":
3535
./test.cue:10:19

cue/interpreter/embed/embed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (c *compiler) processGlob(glob, scope string, schema adt.Value) (adt.Expr,
237237
return nil, errors.Promote(err, "failed to match glob")
238238
}
239239
if len(matches) == 0 {
240-
return nil, errors.Newf(c.pos, "no matches for gob pattern %q", glob)
240+
return nil, errors.Newf(c.pos, "no matches for glob pattern %q", glob)
241241
}
242242

243243
dirs := make(map[string]string)

0 commit comments

Comments
 (0)