File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,24 @@ use git_object::bstr::BStr;
3
3
pub use imara_diff as imara;
4
4
pub use imara_diff:: Algorithm ;
5
5
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.
8
8
///
9
9
/// See [the `imara-diff` crate documentation][imara] for information on how to implement a [`Sink`][imara::Sink].
10
10
pub fn with < ' a , FnI , FnS , S > (
11
11
old : & ' a BStr ,
12
12
new : & ' a BStr ,
13
13
algorithm : Algorithm ,
14
- make_input : FnI ,
15
- make_sink : FnS ,
14
+ new_input : FnI ,
15
+ new_sink : FnS ,
16
16
) -> ( imara:: intern:: InternedInput < & ' a [ u8 ] > , S :: Out )
17
17
where
18
18
FnI : FnOnce ( & ' a [ u8 ] , & ' a [ u8 ] ) -> imara:: intern:: InternedInput < & ' a [ u8 ] > ,
19
19
FnS : FnOnce ( & imara:: intern:: InternedInput < & ' a [ u8 ] > ) -> S ,
20
20
S : imara_diff:: Sink ,
21
21
{
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) ;
24
24
let out = imara:: diff ( algorithm, & input, sink) ;
25
25
( input, out)
26
26
}
You can’t perform that action at this time.
0 commit comments