Skip to content

Commit 6a25312

Browse files
committed
fix nom-language tests
1 parent bcc1b0c commit 6a25312

File tree

1 file changed

+3
-3
lines changed
  • nom-language/src/precedence

1 file changed

+3
-3
lines changed

nom-language/src/precedence/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ where
141141
/// # Example
142142
/// ```rust
143143
/// # use nom::{Err, error::{Error, ErrorKind}, IResult};
144-
/// use nom::precedence::{precedence, unary_op, binary_op, Assoc, Operation};
144+
/// use nom_language::precedence::{precedence, unary_op, binary_op, Assoc, Operation};
145145
/// use nom::character::complete::digit1;
146146
/// use nom::combinator::{map_res, fail};
147147
/// use nom::sequence::delimited;
@@ -163,7 +163,7 @@ where
163163
/// delimited(tag("("), parser, tag(")")),
164164
/// )),
165165
/// |op: Operation<&str, &str, &str, i64>| {
166-
/// use nom::precedence::Operation::*;
166+
/// use nom_language::precedence::Operation::*;
167167
/// match op {
168168
/// Prefix("-", o) => Ok(-o),
169169
/// Binary(lhs, "*", rhs) => Ok(lhs * rhs),
@@ -399,7 +399,7 @@ where
399399
/// ```rust
400400
/// # #[macro_use] extern crate nom;
401401
/// # use nom::{Err, error::ErrorKind, Needed, IResult, Parser};
402-
/// use nom::multi::left_assoc;
402+
/// use nom_language::precedence::left_assoc;
403403
/// use nom::branch::alt;
404404
/// use nom::sequence::delimited;
405405
/// use nom::character::complete::{char, digit1};

0 commit comments

Comments
 (0)