Added missing docs
This commit is contained in:
parent
7abcdc09d8
commit
158c28784d
6 changed files with 25 additions and 1 deletions
|
|
@ -215,8 +215,11 @@ pub struct TextDiff<'old, 'new, 'bufs> {
|
|||
/// The tag of a change.
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Ord, PartialOrd)]
|
||||
pub enum ChangeTag {
|
||||
/// The change indicates equality (not a change)
|
||||
Equal,
|
||||
/// The change indicates deleted text.
|
||||
Delete,
|
||||
/// The change indicates inserted text.
|
||||
Insert,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ impl<'diff, 'old, 'new, 'bufs> fmt::Display for UnifiedDiffHunk<'diff, 'old, 'ne
|
|||
if self.missing_newline_hint {
|
||||
writeln!(f, "\n\\ No newline at end of file")?;
|
||||
} else {
|
||||
writeln!(f, "")?;
|
||||
writeln!(f)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue