Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 9503b4a

Browse files
author
Marko Mikulicic
committed
Improve AST diagram
1 parent 4491566 commit 9503b4a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/ast.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ use serde_json::Value;
1111
/// For example, the JSONPath `$.foo.bar` yields this AST:
1212
///
1313
/// ```text
14-
/// *
14+
/// ^
1515
/// / \
16-
/// * \___ DotName("bar")
16+
/// ^ \___ DotName("bar")
1717
/// / \
18-
/// * \___ DotName("foo")
18+
/// ^ \___ DotName("foo")
1919
/// /
2020
/// Root ___/
2121
/// ```
2222
///
2323
/// A more complicated example: `$.foo[1,2]["bar"]`:
2424
///
2525
/// ```text
26-
/// *
26+
/// ^
2727
/// / \
28-
/// * \___ Union
28+
/// ^ \___ Union
2929
/// / \ \
30-
/// * \___ Union \
30+
/// ^ \___ Union \
3131
/// / \ [Field("bar")]
32-
/// * \
32+
/// ^ \
3333
/// / \ [Number(1), Number(2)]
3434
/// / \
3535
/// Root ___/ \___ DotName("foo")

0 commit comments

Comments
 (0)