From 24fedd3b8cfa1cea44e741eb61485247a949b756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 23 Jan 2024 20:33:27 +0100 Subject: [PATCH] Fix typos --- CHANGELOG.md | 2 +- src/vec.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77a35644..ff4ee28f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `Vec::spare_capacity_mut`. - Added `Extend` impls for `Deque`. - Added `Deque::make_contiguous`. -- Added `VecView`, the `!Sized` version of `Vec` +- Added `VecView`, the `!Sized` version of `Vec`. ### Changed diff --git a/src/vec.rs b/src/vec.rs index 67afb4fd..8621d4c6 100644 --- a/src/vec.rs +++ b/src/vec.rs @@ -80,13 +80,13 @@ pub type Vec = VecInner<[MaybeUninit; N]>; /// A [`Vec`] with dynamic capacity /// -/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning that it can only ever be used through pointer +/// [`Vec`] coerces to `VecView`. `VecView` is `!Sized`, meaning it can only ever be used by reference. /// /// Unlike [`Vec`], `VecView` does not have an `N` const-generic parameter. -/// This has the ergonomic advantages of making it possible to use functions without needing to know at +/// This has the ergonomic advantage of making it possible to use functions without needing to know at /// compile-time the size of the buffers used, for example for use in `dyn` traits. /// -/// `VecView` is to `Vec` what `[T]` is to `[T; N]` +/// `VecView` is to `Vec` what `[T]` is to `[T; N]`. /// /// ```rust /// use heapless::{Vec, VecView};