Skip to content

Commit c8abcae

Browse files
committed
---
yaml --- r: 184231 b: refs/heads/tmp c: e240cb9 h: refs/heads/master i: 184229: a7feec9 184227: 5fe31a8 184223: 6198f86 v: v3
1 parent 8dc579f commit c8abcae

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
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 343909bca1a3903bc6df51007723601ac5a103c0
37+
refs/heads/tmp: e240cb919b58975a0b647a613841da8819b672cf

branches/tmp/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)