Skip to content

Commit 0f8bde4

Browse files
krakow10khvzak
authored andcommitted
Fix Reversed Comments & Typo (#560)
* Fix reversed comments * Fix typos
1 parent b9c9dfb commit 0f8bde4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/multi.rs

Lines changed: 3 additions & 3 deletions
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)