Skip to content

Commit

Permalink
fix nom-language tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Dec 8, 2024
1 parent bcc1b0c commit 6a25312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nom-language/src/precedence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ where
/// # Example
/// ```rust
/// # use nom::{Err, error::{Error, ErrorKind}, IResult};
/// use nom::precedence::{precedence, unary_op, binary_op, Assoc, Operation};
/// use nom_language::precedence::{precedence, unary_op, binary_op, Assoc, Operation};
/// use nom::character::complete::digit1;
/// use nom::combinator::{map_res, fail};
/// use nom::sequence::delimited;
Expand All @@ -163,7 +163,7 @@ where
/// delimited(tag("("), parser, tag(")")),
/// )),
/// |op: Operation<&str, &str, &str, i64>| {
/// use nom::precedence::Operation::*;
/// use nom_language::precedence::Operation::*;
/// match op {
/// Prefix("-", o) => Ok(-o),
/// Binary(lhs, "*", rhs) => Ok(lhs * rhs),
Expand Down Expand Up @@ -399,7 +399,7 @@ where
/// ```rust
/// # #[macro_use] extern crate nom;
/// # use nom::{Err, error::ErrorKind, Needed, IResult, Parser};
/// use nom::multi::left_assoc;
/// use nom_language::precedence::left_assoc;
/// use nom::branch::alt;
/// use nom::sequence::delimited;
/// use nom::character::complete::{char, digit1};
Expand Down

0 comments on commit 6a25312

Please sign in to comment.