@@ -100,8 +100,8 @@ impl DiffHandle {
100
100
}
101
101
102
102
// TODO configuration
103
- /// synchronus debounce value should be low
104
- /// so we can update synchrously most of the time
103
+ /// synchronous debounce value should be low
104
+ /// so we can update synchronously most of the time
105
105
const DIFF_DEBOUNCE_TIME_SYNC : u64 = 1 ;
106
106
/// maximum time that rendering should be blocked until the diff finishes
107
107
const SYNC_DIFF_TIMEOUT : u64 = 50 ;
@@ -111,7 +111,7 @@ const MAX_DIFF_LINES: usize = 64 * u16::MAX as usize;
111
111
// cap average line length to 128 for files with MAX_DIFF_LINES
112
112
const MAX_DIFF_BYTES : usize = MAX_DIFF_LINES * 128 ;
113
113
114
- /// A single change in a file potentially sppaning multiple lines
114
+ /// A single change in a file potentially spanning multiple lines
115
115
/// Hunks produced by the differs are always ordered by their position
116
116
/// in the file and non-overlapping.
117
117
/// Specifically for any two hunks `x` and `y` the following properties hold:
@@ -128,15 +128,15 @@ pub struct Hunk {
128
128
129
129
impl Hunk {
130
130
/// Can be used instead of `Option::None` for better performance
131
- /// because lines larger then `i32::MAX` are not supported by imara-diff anways.
131
+ /// because lines larger than `i32::MAX` are not supported by imara-diff anways.
132
132
/// Has some nice properties where it usually is not necessary to check for `None` seperatly:
133
- /// Empty ranges fail contains checks and also faills smaller then checks.
133
+ /// Empty ranges fail contains checks and also fails smaller than checks.
134
134
pub const NONE : Hunk = Hunk {
135
135
before : u32:: MAX ..u32:: MAX ,
136
136
after : u32:: MAX ..u32:: MAX ,
137
137
} ;
138
138
139
- /// Inverts a change so that `before`
139
+ /// Inverts a change so that `before` becomes `after` and `after` becomes `before`
140
140
pub fn invert ( & self ) -> Hunk {
141
141
Hunk {
142
142
before : self . after . clone ( ) ,
0 commit comments