Added missing docs

This commit is contained in:
Armin Ronacher 2021-01-31 19:35:20 +01:00
parent 7abcdc09d8
commit 158c28784d
6 changed files with 25 additions and 1 deletions

View file

@ -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,
}

View file

@ -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)?;
}
}
}