Skip to content

Commit

Permalink
spec: fix two errors in the dynamic fields example
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
SteVwonder authored and mvdan committed Oct 26, 2023
1 parent 8a98ac0 commit 200a8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/ref/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1166,9 +1166,9 @@ A dynamic field may be marked as optional or required.

```
Expression Result
a: "foo a: "foo"
a: "foo" a: "foo"
b: "bar" b: "bar"
(a): "baz" bar: "baz"
(a): "baz" foo: "baz"
(a+b): "qux" foobar: "qux"
Expand Down

0 comments on commit 200a8ec

Please sign in to comment.