File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1417,16 +1417,18 @@ enum ParserState {
14171417
14181418/// A Stack represents the current position of the parser in the logical
14191419/// structure of the JSON stream.
1420- /// For example foo.bar[3].x
1420+ ///
1421+ /// An example is `foo.bar[3].x`.
14211422pub struct Stack {
14221423 stack : Vec < InternalStackElement > ,
14231424 str_buffer : Vec < u8 > ,
14241425}
14251426
14261427/// 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`.
14301432#[ derive( PartialEq , Clone , Debug ) ]
14311433pub enum StackElement < ' l > {
14321434 Index ( u32 ) ,
You can’t perform that action at this time.
0 commit comments