diff --git a/src/buffer.rs b/src/buffer.rs index 480536a7dc..bbebb5df19 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -1044,11 +1044,8 @@ where { /// Writes the buffer to a writer in the specified format. /// - /// Assumes the writer is buffered. In most cases, - /// you should wrap your writer in a `BufWriter` for best performance. - /// - /// See [`ImageOutputFormat`](enum.ImageOutputFormat.html) for - /// supported types. + /// Assumes the writer is buffered. In most cases, you should wrap your writer in a `BufWriter` + /// for best performance. pub fn write_to(&self, writer: &mut W, format: ImageFormat) -> ImageResult<()> where W: std::io::Write + std::io::Seek, diff --git a/src/dynimage.rs b/src/dynimage.rs index 5db281c139..2be6a96c34 100644 --- a/src/dynimage.rs +++ b/src/dynimage.rs @@ -1148,16 +1148,11 @@ pub fn save_buffer_with_format( /// Writes the supplied buffer to a writer in the specified format. /// -/// The buffer is assumed to have the correct format according -/// to the specified color type. -/// This will lead to corrupted writers if the buffer contains -/// malformed data. -/// -/// See [`ImageOutputFormat`](enum.ImageOutputFormat.html) for -/// supported types. +/// The buffer is assumed to have the correct format according to the specified color type. This +/// will lead to corrupted writers if the buffer contains malformed data. /// -/// Assumes the writer is buffered. In most cases, -/// you should wrap your writer in a `BufWriter` for best performance. +/// Assumes the writer is buffered. In most cases, you should wrap your writer in a `BufWriter` for +/// best performance. pub fn write_buffer_with_format( buffered_writer: &mut W, buf: &[u8],