Skip to content

Commit

Permalink
Removed the mention of panics on context_radius
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jul 28, 2022
1 parent ff5f4ca commit 823cb56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/udiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ impl<'diff, 'old, 'new, 'bufs, T: DiffableStr + ?Sized> UnifiedDiff<'diff, 'old,
/// Changes the context radius.
///
/// The context radius is the number of lines between changes that should
/// be emitted. This defaults to `3`. This value must be one or larger or
/// creating the diff will panic.
/// be emitted. This defaults to `3`.
pub fn context_radius(&mut self, n: usize) -> &mut Self {
self.context_radius = n;
self
Expand Down

0 comments on commit 823cb56

Please sign in to comment.