Improve docs
This commit is contained in:
parent
7ee4fd8c72
commit
ddd065dd3a
2 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
/// Heuristically determine if the given data is a binary or a text file's
|
||||
/// content.
|
||||
///
|
||||
/// Only text inputs can be reconciled using the crate's functions.
|
||||
#[must_use]
|
||||
pub fn is_binary(data: &[u8]) -> bool {
|
||||
if data.contains(&0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue