Skip to content

Commit 30d6705

Browse files
zwerdldsV0ldek
andauthored
Improve documentation on TransitionLabel
Co-authored-by: V0ldek <mat@gienieczko.com>
1 parent fc9ff30 commit 30d6705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rsonpath-lib/src/query/automaton.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ pub struct Automaton<'q> {
2121
/// Represent the distinct methods of moving on a match between states.
2222
#[derive(Debug, Copy, PartialEq, Clone, Eq)]
2323
pub enum TransitionLabel<'q> {
24-
/// Wraps a textual field [`Label`] in a JSON object.
24+
/// Transition when a JSON member name matches a [`Label`]i.
2525
ObjectMember(&'q Label),
26-
/// Wraps an array index [`NonNegativeArrayIndex`] in a JSON object.
26+
/// Transition on the n-th element of an array, with n specified by a [`NonNegativeArrayIndex`].
2727
ArrayIndex(NonNegativeArrayIndex),
2828
}
2929

0 commit comments

Comments
 (0)