Skip to content

Commit 200a8ec

Browse files
SteVwondermvdan
authored andcommitted
spec: fix two errors in the dynamic fields example
Since the example declares `a: "foo"`, `(a): "baz"` is `foo: "baz"` and not `bar: "baz"`. While here, `a: "foo"` was missing a closing quote. Fixes #2592. Closes #2621 as merged as of commit 813f70a. Signed-off-by: Stephen Herbein <[email protected]> Change-Id: I4d631833f51581fceb9d08df3b533d931c131463 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1171216 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent 8a98ac0 commit 200a8ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/ref/spec.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1166,9 +1166,9 @@ A dynamic field may be marked as optional or required.
11661166

11671167
```
11681168
Expression Result
1169-
a: "foo a: "foo"
1169+
a: "foo" a: "foo"
11701170
b: "bar" b: "bar"
1171-
(a): "baz" bar: "baz"
1171+
(a): "baz" foo: "baz"
11721172
11731173
(a+b): "qux" foobar: "qux"
11741174

0 commit comments

Comments
 (0)