aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_io.rs
diff options
context:
space:
mode:
authorJeffrey Yasskin <[email protected]>2010-07-24 16:01:34 -0700
committerGraydon Hoare <[email protected]>2010-08-06 17:25:27 -0700
commit581a95a804f77259153c030d39f861282b468612 (patch)
tree9b31cad6fe2ac9107a99baa70c4872666a1b7188 /src/lib/_io.rs
parentChange the destructor-ordering test to use channels instead of a shared mutab... (diff)
downloadrust-581a95a804f77259153c030d39f861282b468612.tar.xz
rust-581a95a804f77259153c030d39f861282b468612.zip
Add an int->str conversion function.
The test currently fails because string equality isn't implemented.
Diffstat (limited to 'src/lib/_io.rs')
-rw-r--r--src/lib/_io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/_io.rs b/src/lib/_io.rs
index dbd60e63..93d06d41 100644
--- a/src/lib/_io.rs
+++ b/src/lib/_io.rs
@@ -125,8 +125,8 @@ fn file_writer(str path,
{
unsafe obj fw(buf_writer out) {
fn write_str(str s) { out.write(_str.bytes(s)); }
- fn write_int(int n) { out.write(_str.bytes(_int.to_string(n, 10u))); }
- fn write_uint(uint n) { out.write(_str.bytes(_int.uto_string(n, 10u))); }
+ fn write_int(int n) { out.write(_str.bytes(_int.to_str(n, 10u))); }
+ fn write_uint(uint n) { out.write(_str.bytes(_int.uto_str(n, 10u))); }
}
ret fw(new_buf_writer(path, flags));
}