Skip to content

Commit 8b9f913

Browse files
committed
syntax: revert the uint -> u32 "fix"; make the names/comment match.
1 parent 5efaa4f commit 8b9f913

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libsyntax/ext/deriving/rand.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ fn rand_substructure(cx: @ExtCtxt, span: span, substr: &Substructure) -> @expr {
7878

7979
let variant_count = cx.expr_uint(span, variants.len());
8080

81-
// need to specify the u32-ness of the random number
82-
let u32_ty = cx.ty_ident(span, cx.ident_of("u32"));
81+
// need to specify the uint-ness of the random number
82+
let uint_ty = cx.ty_ident(span, cx.ident_of("uint"));
8383
let r_ty = cx.ty_ident(span, cx.ident_of("R"));
84-
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ u32_ty, r_ty ]);
84+
let rand_name = cx.path_all(span, true, copy rand_ident, None, ~[ uint_ty, r_ty ]);
8585
let rand_name = cx.expr_path(rand_name);
8686

87-
// ::std::rand::Rand::rand::<u32>(rng)
87+
// ::std::rand::Rand::rand::<uint>(rng)
8888
let rv_call = cx.expr_call(span,
8989
rand_name,
9090
~[ rng[0].duplicate(cx) ]);

0 commit comments

Comments
 (0)