Skip to content

Commit

Permalink
Clarify the return value of recognize_float_parts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNeikos authored and Geal committed Mar 14, 2022
1 parent 5074124 commit 6892982
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/number/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,10 @@ where
))(input)
}

/// Recognizes a floating point number in text format and returns the integer, fraction and exponent parts of the input data
/// Recognizes a floating point number in text format
///
/// It returns a tuple of (`sign`, `integer part`, `fraction part` and `exponent`) of the input
/// data.
///
/// *Complete version*: Can parse until the end of input.
///
Expand Down
5 changes: 4 additions & 1 deletion src/number/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,10 @@ where
))(input)
}

/// Recognizes a floating point number in text format and returns the integer, fraction and exponent parts of the input data
/// Recognizes a floating point number in text format
///
/// It returns a tuple of (`sign`, `integer part`, `fraction part` and `exponent`) of the input
/// data.
///
/// *Streaming version*: Will return `Err(nom::Err::Incomplete(_))` if there is not enough data.
///
Expand Down

0 comments on commit 6892982

Please sign in to comment.