Skip to content

Commit a1b93e8

Browse files
committed
Rearrange Vec::from_raw_parts{,_in} doc argument order to match code argument order
1 parent b79db43 commit a1b93e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl<T> Vec<T> {
481481
Self::with_capacity_in(capacity, Global)
482482
}
483483

484-
/// Creates a `Vec<T>` directly from a pointer, a capacity, and a length.
484+
/// Creates a `Vec<T>` directly from a pointer, a length, and a capacity.
485485
///
486486
/// # Safety
487487
///
@@ -672,7 +672,7 @@ impl<T, A: Allocator> Vec<T, A> {
672672
Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 }
673673
}
674674

675-
/// Creates a `Vec<T, A>` directly from a pointer, a capacity, a length,
675+
/// Creates a `Vec<T, A>` directly from a pointer, a length, a capacity,
676676
/// and an allocator.
677677
///
678678
/// # Safety

0 commit comments

Comments
 (0)