Skip to content

Commit a807f2d

Browse files
committed
---
yaml --- r: 183998 b: refs/heads/auto c: e240cb9 h: refs/heads/master v: v3
1 parent 94a2bc1 commit a807f2d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 343909bca1a3903bc6df51007723601ac5a103c0
13+
refs/heads/auto: e240cb919b58975a0b647a613841da8819b672cf
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcore/default.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//!
1717
//! ```
1818
//! struct SomeOptions {
19-
//! foo: int,
19+
//! foo: i32,
2020
//! bar: f32,
2121
//! }
2222
//! ```
@@ -28,7 +28,7 @@
2828
//!
2929
//! #[derive(Default)]
3030
//! struct SomeOptions {
31-
//! foo: int,
31+
//! foo: i32,
3232
//! bar: f32,
3333
//! }
3434
//!
@@ -56,7 +56,7 @@
5656
//!
5757
//! #[derive(Default)]
5858
//! struct SomeOptions {
59-
//! foo: int,
59+
//! foo: i32,
6060
//! bar: f32,
6161
//! baz: Kind,
6262
//! }
@@ -73,7 +73,7 @@
7373
//! # use std::default::Default;
7474
//! # #[derive(Default)]
7575
//! # struct SomeOptions {
76-
//! # foo: int,
76+
//! # foo: i32,
7777
//! # bar: f32,
7878
//! # }
7979
//! fn main() {
@@ -93,7 +93,7 @@
9393
/// ```
9494
/// #[derive(Default)]
9595
/// struct SomeOptions {
96-
/// foo: int,
96+
/// foo: i32,
9797
/// bar: f32,
9898
/// }
9999
/// ```
@@ -113,7 +113,7 @@ pub trait Default {
113113
///
114114
/// let i: i8 = Default::default();
115115
/// let (x, y): (Option<String>, f64) = Default::default();
116-
/// let (a, b, (c, d)): (int, uint, (bool, bool)) = Default::default();
116+
/// let (a, b, (c, d)): (i32, u32, (bool, bool)) = Default::default();
117117
/// ```
118118
///
119119
/// Making your own:
@@ -150,13 +150,13 @@ default_impl! { (), () }
150150
default_impl! { bool, false }
151151
default_impl! { char, '\x00' }
152152

153-
default_impl! { uint, 0 }
153+
default_impl! { usize, 0 }
154154
default_impl! { u8, 0 }
155155
default_impl! { u16, 0 }
156156
default_impl! { u32, 0 }
157157
default_impl! { u64, 0 }
158158

159-
default_impl! { int, 0 }
159+
default_impl! { isize, 0 }
160160
default_impl! { i8, 0 }
161161
default_impl! { i16, 0 }
162162
default_impl! { i32, 0 }

0 commit comments

Comments
 (0)