Skip to content

Commit 381924c

Browse files
committed
adjust docs
1 parent fa27570 commit 381924c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: git-diff/src/text.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ use git_object::bstr::BStr;
33
pub use imara_diff as imara;
44
pub use imara_diff::Algorithm;
55

6-
/// Create a diff yielding the changes to turn `old` into `new` with `algorithm`. `make_input` obtains the `old` and `new`
7-
/// byte buffers and produces an interner, which is then passed to `make_sink` for creating a processor over the changes.
6+
/// Create a diff yielding the changes to turn `old` into `new` with `algorithm`. `new_input` obtains the `old` and `new`
7+
/// byte buffers and produces an interner, which is then passed to `new_sink` for creating a processor over the changes.
88
///
99
/// See [the `imara-diff` crate documentation][imara] for information on how to implement a [`Sink`][imara::Sink].
1010
pub fn with<'a, FnI, FnS, S>(
1111
old: &'a BStr,
1212
new: &'a BStr,
1313
algorithm: Algorithm,
14-
make_input: FnI,
15-
make_sink: FnS,
14+
new_input: FnI,
15+
new_sink: FnS,
1616
) -> (imara::intern::InternedInput<&'a [u8]>, S::Out)
1717
where
1818
FnI: FnOnce(&'a [u8], &'a [u8]) -> imara::intern::InternedInput<&'a [u8]>,
1919
FnS: FnOnce(&imara::intern::InternedInput<&'a [u8]>) -> S,
2020
S: imara_diff::Sink,
2121
{
22-
let input = make_input(old.as_ref(), new.as_ref());
23-
let sink = make_sink(&input);
22+
let input = new_input(old.as_ref(), new.as_ref());
23+
let sink = new_sink(&input);
2424
let out = imara::diff(algorithm, &input, sink);
2525
(input, out)
2626
}

0 commit comments

Comments
 (0)