From ef8aeab574bc1390e8b7c5f0ef074b43ddc9865f Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Wed, 13 Jul 2022 14:28:47 +0000 Subject: [PATCH] Improved docs --- src/buffer/immutable.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/buffer/immutable.rs b/src/buffer/immutable.rs index 6abae156a9b..57d8ce21345 100644 --- a/src/buffer/immutable.rs +++ b/src/buffer/immutable.rs @@ -2,14 +2,13 @@ use std::{iter::FromIterator, ops::Deref, sync::Arc, usize}; use super::Bytes; -/// [`Buffer`] is a contiguous memory region of plain old data types -/// that can be shared across thread boundaries. +/// [`Buffer`] is a contiguous memory region that can be shared across +/// thread boundaries. /// /// The easiest way to think about [`Buffer`] is being equivalent to /// a `Arc>`, with the following differences: -/// * `T` must be [`NativeType`] /// * slicing and cloning is `O(1)`. -/// * it supports external allocated memory (via FFI) +/// * it supports external allocated memory /// /// The easiest way to create one is to use its implementation of `From>`. ///