Skip to content

Commit 813f70a

Browse files
committed
[doc] fix error in dynamic fields example
Since `a: "foo"` is provided in the example, the result of `(a): "baz"` is `foo: "baz"` not `bar: "baz"`. Also add a missing quote. Closes: #2592 Signed-off-by: Stephen Herbein <[email protected]>
1 parent a43792c commit 813f70a

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)