aboutsummaryrefslogtreecommitdiff
path: root/src/test/bench/99-bottles/99bob-simple.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-12 17:24:54 +0200
committerMarijn Haverbeke <[email protected]>2011-05-12 21:30:44 +0200
commit3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2 (patch)
tree508982ed2f789aedd89eebd529343d9dc88b8e01 /src/test/bench/99-bottles/99bob-simple.rs
parentTransitional change to make extfmt output lowercase module name (diff)
downloadrust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.tar.xz
rust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.zip
Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
Diffstat (limited to 'src/test/bench/99-bottles/99bob-simple.rs')
-rw-r--r--src/test/bench/99-bottles/99bob-simple.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/bench/99-bottles/99bob-simple.rs b/src/test/bench/99-bottles/99bob-simple.rs
index 5c0f0824..569b076a 100644
--- a/src/test/bench/99-bottles/99bob-simple.rs
+++ b/src/test/bench/99-bottles/99bob-simple.rs
@@ -1,10 +1,10 @@
-/* -*- mode:rust;indent-tabs-mode:nil -*-
+/* -*- mode::rust;indent-tabs-mode::nil -*-
* Implementation of 99 Bottles of Beer
* http://99-bottles-of-beer.net/
*/
use std;
-import std.Int;
-import std.Str;
+import std::_int;
+import std::_str;
fn b1() -> str {
ret "# of beer on the wall, # of beer.";
@@ -31,15 +31,15 @@ case (1) {
ns = "1 bottle";
}
case (_) {
- ns = Int.to_str(n, 10u) + " bottles";
+ ns = _int::to_str(n, 10u) + " bottles";
}
}
- while (i < Str.byte_len(t)) {
+ while (i < _str::byte_len(t)) {
if (t.(i) == ('#' as u8)) {
b += ns;
}
else {
- Str.push_byte(b, t.(i));
+ _str::push_byte(b, t.(i));
}
i += 1u;
}