Skip to content

Commit 27de1bb

Browse files
richard-uk1frewsxcv
authored andcommitted
Update vec.rs
Changed language to stress char is the C meaning (u8) not unicode.
1 parent ddc536c commit 27de1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ impl<T> Vec<T> {
371371
///
372372
/// Violating these may cause problems like corrupting the allocator's
373373
/// internal datastructures. For example it is **not** safe
374-
/// to build a `Vec<u8>` from a C pointer to a char array and a `size_t`.
374+
/// to build a `Vec<u8>` from a pointer to a C `char` array and a `size_t`.
375375
///
376376
/// The ownership of `ptr` is effectively transferred to the
377377
/// `Vec<T>` which may then deallocate, reallocate or change the

0 commit comments

Comments
 (0)