@@ -81,7 +81,7 @@ impl TextPredicate {
8181 }
8282 }
8383
84- pub fn satsified < I : TsInput > (
84+ pub fn satisfied < I : TsInput > (
8585 & self ,
8686 input : & mut I ,
8787 matched_nodes : & [ MatchedNode ] ,
@@ -230,7 +230,7 @@ impl Query {
230230 } ) ;
231231 }
232232
233- // is and is-not are better handeled as custom predicates since interpreting is context dependent
233+ // is and is-not are better handled as custom predicates since interpreting is context dependent
234234 // "is?" => property_predicates.push((QueryProperty::parse(&predicate), false)),
235235 // "is-not?" => property_predicates.push((QueryProperty::parse(&predicate), true)),
236236 _ => custom_predicate ( pattern, UserPredicate :: Other ( predicate) ) ?,
@@ -375,7 +375,7 @@ impl Error for InvalidPredicateError {}
375375#[ repr( C ) ]
376376#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
377377// warns about never being constructed but it's constructed by C code
378- // and wrwitten into a mutable reference
378+ // and written into a mutable reference
379379#[ allow( dead_code) ]
380380enum PredicateStepKind {
381381 Done = 0 ,
@@ -406,15 +406,17 @@ extern "C" {
406406 /// Get all of the predicates for the given pattern in the query. The
407407 /// predicates are represented as a single array of steps. There are three
408408 /// types of steps in this array, which correspond to the three legal values
409- /// for the `type` field: - `TSQueryPredicateStepTypeCapture` - Steps with
410- /// this type represent names of captures. Their `value_id` can be used
411- /// with the [`ts_query_capture_name_for_id`] function to obtain the name
412- /// of the capture. - `TSQueryPredicateStepTypeString` - Steps with this
413- /// type represent literal strings. Their `value_id` can be used with the
414- /// [`ts_query_string_value_for_id`] function to obtain their string value.
415- /// - `TSQueryPredicateStepTypeDone` - Steps with this type are *sentinels*
416- /// that represent the end of an individual predicate. If a pattern has two
417- /// predicates, then there will be two steps with this `type` in the array.
409+ /// for the `type` field:
410+ ///
411+ /// - `TSQueryPredicateStepTypeCapture` - Steps with this type represent names of captures.
412+ /// Their `value_id` can be used with the [`ts_query_capture_name_for_id`] function to
413+ /// obtain the name of the capture.
414+ /// - `TSQueryPredicateStepTypeString` - Steps with this type represent literal strings.
415+ /// Their `value_id` can be used with the [`ts_query_string_value_for_id`] function to
416+ /// obtain their string value.
417+ /// - `TSQueryPredicateStepTypeDone` - Steps with this type are *sentinels* that represent the
418+ /// end of an individual predicate. If a pattern has two predicates, then there will be two
419+ /// steps with this `type` in the array.
418420 fn ts_query_predicates_for_pattern (
419421 query : NonNull < QueryData > ,
420422 pattern_index : u32 ,
0 commit comments