OwnedBytes doc clarification (#1498)

It only exposes it with the same lifetime as `&self`, which is what keeps things safe
This commit is contained in:
Shikhar Bhushan
2022-08-31 21:32:17 -04:00
committed by GitHub
parent 0d1cd119e9
commit 70e58adff9

View File

@@ -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)]