Skip to content

Commit 196c566

Browse files
committed
Fix typos in DiffOptions documentation
1 parent 6eb24a5 commit 196c566

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/diff.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ impl DiffOptions {
685685
self.flag(raw::GIT_DIFF_INCLUDE_UNTRACKED, include)
686686
}
687687

688-
/// Flag indicating whether untracked directories are deeply traversed or
688+
/// Flag indicating whether untracked directories are traversed deeply or
689689
/// not.
690690
pub fn recurse_untracked_dirs(&mut self, recurse: bool) -> &mut DiffOptions {
691691
self.flag(raw::GIT_DIFF_RECURSE_UNTRACKED_DIRS, recurse)
@@ -696,13 +696,13 @@ impl DiffOptions {
696696
self.flag(raw::GIT_DIFF_INCLUDE_UNMODIFIED, include)
697697
}
698698

699-
/// If entrabled, then Typechange delta records are generated.
699+
/// If enabled, then Typechange delta records are generated.
700700
pub fn include_typechange(&mut self, include: bool) -> &mut DiffOptions {
701701
self.flag(raw::GIT_DIFF_INCLUDE_TYPECHANGE, include)
702702
}
703703

704-
/// Event with `include_typechange`, the tree treturned generally shows a
705-
/// deleted blow. This flag correctly labels the tree transitions as a
704+
/// Event with `include_typechange`, the tree returned generally shows a
705+
/// deleted blob. This flag correctly labels the tree transitions as a
706706
/// typechange record with the `new_file`'s mode set to tree.
707707
///
708708
/// Note that the tree SHA will not be available.
@@ -763,7 +763,7 @@ impl DiffOptions {
763763
self.flag(raw::GIT_DIFF_INCLUDE_UNREADABLE, include)
764764
}
765765

766-
/// Include unreadable files in the diff
766+
/// Include unreadable files in the diff as untracked files
767767
pub fn include_unreadable_as_untracked(&mut self, include: bool) -> &mut DiffOptions {
768768
self.flag(raw::GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED, include)
769769
}

0 commit comments

Comments
 (0)