Removed the mention of panics on context_radius

This commit is contained in:
Armin Ronacher 2022-07-28 21:06:08 +02:00
parent ff5f4caaa3
commit 823cb566df

View file

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