From 0f8bde4b4e612ab8410a3e2af9789a2b00ac813d Mon Sep 17 00:00:00 2001 From: krakow10 Date: Sat, 26 Apr 2025 05:49:50 -0700 Subject: [PATCH] Fix Reversed Comments & Typo (#560) * Fix reversed comments * Fix typos --- src/multi.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/multi.rs b/src/multi.rs index b4fb0e2..c171962 100644 --- a/src/multi.rs +++ b/src/multi.rs @@ -126,8 +126,7 @@ impl MultiValue { /// Creates a `MultiValue` container from vector of values. /// - /// This methods needs *O*(*n*) data movement if the circular buffer doesn't happen to be at the - /// beginning of the allocation. + /// This method works in *O*(1) time and does not allocate any additional memory. #[inline] pub fn from_vec(vec: Vec) -> MultiValue { vec.into() @@ -135,7 +134,8 @@ impl MultiValue { /// Consumes the `MultiValue` and returns a vector of values. /// - /// This methods works in *O*(1) time and does not allocate any additional memory. + /// This method needs *O*(*n*) data movement if the circular buffer doesn't happen to be at the + /// beginning of the allocation. #[inline] pub fn into_vec(self) -> Vec { self.into()