Added comment to TextDiff
This commit is contained in:
parent
05f9069769
commit
81ba51fc3c
1 changed files with 5 additions and 0 deletions
|
|
@ -163,6 +163,11 @@ impl TextDiffConfig {
|
|||
|
||||
/// Captures diff op codes for textual diffs.
|
||||
///
|
||||
/// The exact diff behavior is depending on the underlying [`DiffableStr`].
|
||||
/// For instance diffs on bytes and strings are slightly different. You can
|
||||
/// create a text diff from constructors such as [`TextDiff::from_lines`] or
|
||||
/// the [`TextDiffConfig`] created by [`TextDiff::configure`].
|
||||
///
|
||||
/// Requires the `text` feature.
|
||||
pub struct TextDiff<'old, 'new, 'bufs, T: DiffableStr + ?Sized> {
|
||||
old: Cow<'bufs, [&'old T]>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue