File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1417,16 +1417,18 @@ enum ParserState {
1417
1417
1418
1418
/// A Stack represents the current position of the parser in the logical
1419
1419
/// structure of the JSON stream.
1420
- /// For example foo.bar[3].x
1420
+ ///
1421
+ /// An example is `foo.bar[3].x`.
1421
1422
pub struct Stack {
1422
1423
stack : Vec < InternalStackElement > ,
1423
1424
str_buffer : Vec < u8 > ,
1424
1425
}
1425
1426
1426
1427
/// StackElements compose a Stack.
1427
- /// For example, StackElement::Key("foo"), StackElement::Key("bar"),
1428
- /// StackElement::Index(3) and StackElement::Key("x") are the
1429
- /// StackElements compositing the stack that represents foo.bar[3].x
1428
+ ///
1429
+ /// As an example, `StackElement::Key("foo")`, `StackElement::Key("bar")`,
1430
+ /// `StackElement::Index(3)`, and `StackElement::Key("x")` are the
1431
+ /// StackElements composing the stack that represents `foo.bar[3].x`.
1430
1432
#[ derive( PartialEq , Clone , Debug ) ]
1431
1433
pub enum StackElement < ' l > {
1432
1434
Index ( u32 ) ,
You can’t perform that action at this time.
0 commit comments