Fix typos and markdown (#36)
This commit is contained in:
parent
236a299ff0
commit
3c784d6e9d
5 changed files with 8 additions and 9 deletions
|
|
@ -12,7 +12,7 @@
|
|||
//! # Heuristics
|
||||
//!
|
||||
//! At present this implementation of Myers' does not implement any more advanced
|
||||
//! heuristics that would solve some pathological cases. For instane passing two
|
||||
//! heuristics that would solve some pathological cases. For instance passing two
|
||||
//! large and completely distinct sequences to the algorithm will make it spin
|
||||
//! without making reasonable progress. Currently the only protection in the
|
||||
//! library against this is to pass a deadline to the diffing algorithm.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ pub fn is_empty_range<T: PartialOrd<T>>(range: &Range<T>) -> bool {
|
|||
!(range.start < range.end)
|
||||
}
|
||||
|
||||
/// Represents an item in the vector returend by [`unique`].
|
||||
/// Represents an item in the vector returned by [`unique`].
|
||||
///
|
||||
/// It compares like the underlying item does it was created from but
|
||||
/// carries the index it was originally created from.
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ impl TextDiffConfig {
|
|||
/// Sets a deadline for the diff operation.
|
||||
///
|
||||
/// By default a diff will take as long as it takes. For certain diff
|
||||
/// algorthms like Myer's and Patience a maximum running time can be
|
||||
/// algorithms like Myer's and Patience a maximum running time can be
|
||||
/// defined after which the algorithm gives up and approximates.
|
||||
pub fn deadline(&mut self, deadline: Instant) -> &mut Self {
|
||||
self.deadline = Some(Deadline::Absolute(deadline));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue