Skip to content

Commit ae849f7

Browse files
committed
Renamed integer parser to integer_parser to match other parsers
1 parent 8847a29 commit ae849f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn symbol_parser(input: &[u8]) -> IResult<&[u8], Symbol> {
6262
// @TODO add negatives
6363
/// Parses valid integers
6464
/// Example Successes: 1, 2, 4153, -12421
65-
pub fn integer(input: &[u8]) -> IResult<&[u8], i32> {
65+
pub fn integer_parser(input: &[u8]) -> IResult<&[u8], i32> {
6666
map_res(take_while1(is_digit), |digits: &[u8]| {
6767
String::from_utf8(digits.to_vec()).map(|digit_string| digit_string.parse::<i32>().unwrap())
6868
})(input)
@@ -92,7 +92,7 @@ pub fn to_value_parser<I, O: ToValue>(
9292
/// Example Failures:
9393
/// 1.5, 7.1321 , 1423152621625226126431525
9494
pub fn try_read_i32(input: &[u8]) -> IResult<&[u8], Value> {
95-
to_value_parser(integer)(input)
95+
to_value_parser(integer_parser)(input)
9696
}
9797

9898
/// Tries to parse &[u8] into Value::Symbol

0 commit comments

Comments
 (0)