mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-13 08:13:21 +00:00
Audit core::borrow
for use of int/uint
: use i32
in doc example.
This commit is contained in:
parent
dfc5c0f1e8
commit
f82e2310b3
@ -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…
Reference in New Issue
Block a user