Audit core::borrow
for use of int/uint
: use i32
in doc example.
This commit is contained in:
parent
dfc5c0f1e8
commit
f82e2310b3
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ impl<T> ToOwned<T> for T where T: Clone {
|
|||
/// ```rust
|
||||
/// use std::borrow::Cow;
|
||||
///
|
||||
/// fn abs_all(input: &mut Cow<Vec<int>, [int]>) {
|
||||
/// fn abs_all(input: &mut Cow<Vec<i32>, [i32]>) {
|
||||
/// for i in 0..input.len() {
|
||||
/// let v = input[i];
|
||||
/// if v < 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue