From 823cb566df894bd2c1b3a8ce69edc7eff6f8993b Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 28 Jul 2022 21:06:08 +0200 Subject: [PATCH] Removed the mention of panics on context_radius --- src/udiff.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/udiff.rs b/src/udiff.rs index c65609e..1b887e3 100644 --- a/src/udiff.rs +++ b/src/udiff.rs @@ -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