Some fixup for the documentation

This commit is contained in:
Olivier Goffart 2020-08-25 14:08:27 +02:00
parent 304b0e7b0e
commit 2c0fc29c5c
3 changed files with 6 additions and 5 deletions

View file

@ -17,9 +17,9 @@ use triomphe::{Arc, HeaderWithLength, ThinArc};
#[derive(Clone)]
#[repr(C)]
/// SharedArray holds a reference-counted read-only copy of [T].
/// SharedArray holds a reference-counted read-only copy of `[T]`.
pub struct SharedArray<T: 'static> {
/// Invariant: The usize header is the `len` of the vector, the contained buffer is [T]
/// Invariant: The usize header is the `len` of the vector, the contained buffer is `[T]`
inner: ThinArc<usize, MaybeUninit<T>>,
}