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

Commit d9c79d2

Browse files
author
Marko Mikulicic
committed
Fix diagram
1 parent eca69d8 commit d9c79d2

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/ast.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ use serde_json::Value;
1111
/// For example, the JSONPath `$.foo.bar` yields this AST:
1212
///
1313
/// ```text
14-
/// ^
15-
/// / \
16-
/// ^ \___ DotName("bar")
17-
/// / \
18-
/// ^ \___ DotName("foo")
19-
/// /
20-
/// Root ___/
14+
/// ^
15+
/// / \
16+
/// ^ \___ DotName("bar")
17+
/// / \
18+
/// Root ___ / \___ DotName("foo")
2119
/// ```
2220
///
2321
/// A more complicated example: `$.foo[1,2]["bar"]`:
@@ -29,10 +27,10 @@ use serde_json::Value;
2927
/// / \ \
3028
/// ^ \___ Union \
3129
/// / \ [Field("bar")]
32-
/// ^ \
33-
/// / \ [Number(1), Number(2)]
34-
/// / \
35-
/// Root ___/ \___ DotName("foo")
30+
/// / \
31+
/// ^ [Number(1), Number(2)]
32+
/// / \
33+
/// Root ___/ \___ DotName("foo")
3634
/// ```
3735
///
3836
#[derive(Debug)]

0 commit comments

Comments
 (0)