Skip to content

Commit 5e1451a

Browse files
authored
Fix Reversed Comments & Typo (#560)
* Fix reversed comments * Fix typos
1 parent 64b1d15 commit 5e1451a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/multi.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ impl MultiValue {
126126

127127
/// Creates a `MultiValue` container from vector of values.
128128
///
129-
/// This methods needs *O*(*n*) data movement if the circular buffer doesn't happen to be at the
130-
/// beginning of the allocation.
129+
/// This method works in *O*(1) time and does not allocate any additional memory.
131130
#[inline]
132131
pub fn from_vec(vec: Vec<Value>) -> MultiValue {
133132
vec.into()
134133
}
135134

136135
/// Consumes the `MultiValue` and returns a vector of values.
137136
///
138-
/// This methods works in *O*(1) time and does not allocate any additional memory.
137+
/// This method needs *O*(*n*) data movement if the circular buffer doesn't happen to be at the
138+
/// beginning of the allocation.
139139
#[inline]
140140
pub fn into_vec(self) -> Vec<Value> {
141141
self.into()

0 commit comments

Comments
 (0)