From 70e58adff95b91f15958d87624a2fcbb2275c594 Mon Sep 17 00:00:00 2001 From: Shikhar Bhushan Date: Wed, 31 Aug 2022 21:32:17 -0400 Subject: [PATCH] `OwnedBytes` doc clarification (#1498) It only exposes it with the same lifetime as `&self`, which is what keeps things safe --- ownedbytes/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ownedbytes/src/lib.rs b/ownedbytes/src/lib.rs index b7e5dfd88..6c32ebba8 100644 --- a/ownedbytes/src/lib.rs +++ b/ownedbytes/src/lib.rs @@ -6,7 +6,7 @@ use std::{fmt, io, mem}; use stable_deref_trait::StableDeref; /// An OwnedBytes simply wraps an object that owns a slice of data and exposes -/// this data as a static slice. +/// this data as a slice. /// /// The backing object is required to be `StableDeref`. #[derive(Clone)]