Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/path/fc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn read_file(path: &path::Path) -> io::Result<Vec<u8>> {

/// Predicate adapter that converts a `path` predicate to a byte predicate on its content.
///
/// This is created by `pred.from_path()`.
/// This is created by `pred.from_file_path()`.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct FileContentPredicate<P>
where
Expand Down
1 change: 0 additions & 1 deletion src/path/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ impl fmt::Display for BinaryFilePredicate {
/// let predicate_file = predicate::path::eq_file(Path::new("Cargo.toml"));
/// assert_eq!(true, predicate_file.eval(Path::new("Cargo.toml")));
/// assert_eq!(false, predicate_file.eval(Path::new("src")));
/// assert_eq!(false, predicate_file.eval(Path::new("src")));
/// ```
pub fn eq_file<P: Into<path::PathBuf>>(path: P) -> BinaryFilePredicate {
let path = path.into();
Expand Down
2 changes: 1 addition & 1 deletion src/str/basics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ where

/// Predicate that checks for patterns.
///
/// This is created by `predicates::str:contains`.
/// This is created by `predicates::str::contains`.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ContainsPredicate {
pattern: String,
Expand Down
Loading