Fix Reversed Comments & Typo (#560)

* Fix reversed comments

* Fix typos
This commit is contained in:
krakow10
2025-04-26 05:49:50 -07:00
committed by Alex Orlenko
parent b9c9dfbd03
commit 0f8bde4b4e
+3 -3
View File
@@ -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<Value>) -> 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<Value> {
self.into()