Added documentation updates
This commit is contained in:
parent
7eadf8e955
commit
7abcdc09d8
3 changed files with 9 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ fn main() {
|
||||||
ChangeTag::Insert => "+",
|
ChangeTag::Insert => "+",
|
||||||
ChangeTag::Equal => " ",
|
ChangeTag::Equal => " ",
|
||||||
};
|
};
|
||||||
print!("{}{}", sign, change.value());
|
print!("{}{}", sign, change);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
//! ChangeTag::Insert => "+",
|
//! ChangeTag::Insert => "+",
|
||||||
//! ChangeTag::Equal => " ",
|
//! ChangeTag::Equal => " ",
|
||||||
//! };
|
//! };
|
||||||
//! print!("{}{}", sign, change.value());
|
//! print!("{}{}", sign, change);
|
||||||
//! }
|
//! }
|
||||||
//! }
|
//! }
|
||||||
//! # }
|
//! # }
|
||||||
|
|
|
||||||
|
|
@ -475,6 +475,13 @@ impl<'old, 'new, 'bufs> TextDiff<'old, 'new, 'bufs> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Iterates over the changes the op expands to with inline emphasis.
|
||||||
|
///
|
||||||
|
/// This is very similar to [`iter_changes`] but it performs a second
|
||||||
|
/// level per-character diff on adjacent line replacements. The exact
|
||||||
|
/// behavior of this function with regards to how it detects those
|
||||||
|
/// inline changes is currently not defined and will likely change
|
||||||
|
/// over time.
|
||||||
pub fn iter_inline_changes(&self, op: &DiffOp) -> impl Iterator<Item = InlineChange> {
|
pub fn iter_inline_changes(&self, op: &DiffOp) -> impl Iterator<Item = InlineChange> {
|
||||||
iter_inline_changes(self, op)
|
iter_inline_changes(self, op)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue