From 8a6d1716ec3528fac9a46e2c111f90968e1e0a81 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 3 Feb 2021 01:22:14 +0100 Subject: [PATCH] Fixed mistake in docs --- src/udiff.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/udiff.rs b/src/udiff.rs index 486ac6f..d232553 100644 --- a/src/udiff.rs +++ b/src/udiff.rs @@ -18,7 +18,9 @@ //! //! The [`UnifiedDiff`] type supports both unicode and byte diffs for all //! types compatible with [`DiffableStr`]. You can pick between the two -//! versions by using [`UnifiedDiff.to_string`] or [`UnifiedDiff.to_writer`]. +//! versions by using the [`Display`](std::fmt::Display) implementation or +//! [`UnifiedDiff`] or [`UnifiedDiff::to_writer`]. +//! //! The former uses [`DiffableStr::to_string_lossy`], the latter uses //! [`DiffableStr::as_bytes`] for each line. #[cfg(feature = "text")]