Skip to content

Commit

Permalink
Improve documentation on TransitionLabel
Browse files Browse the repository at this point in the history
Co-authored-by: V0ldek <mat@gienieczko.com>
  • Loading branch information
zwerdlds and V0ldek authored May 18, 2023
1 parent fc9ff30 commit 30d6705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rsonpath-lib/src/query/automaton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ pub struct Automaton<'q> {
/// Represent the distinct methods of moving on a match between states.
#[derive(Debug, Copy, PartialEq, Clone, Eq)]
pub enum TransitionLabel<'q> {
/// Wraps a textual field [`Label`] in a JSON object.
/// Transition when a JSON member name matches a [`Label`]i.
ObjectMember(&'q Label),
/// Wraps an array index [`NonNegativeArrayIndex`] in a JSON object.
/// Transition on the n-th element of an array, with n specified by a [`NonNegativeArrayIndex`].
ArrayIndex(NonNegativeArrayIndex),
}

Expand Down

0 comments on commit 30d6705

Please sign in to comment.