diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ExtFmt.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ExtFmt.rs b/src/lib/ExtFmt.rs index 138f3894..7ef91605 100644 --- a/src/lib/ExtFmt.rs +++ b/src/lib/ExtFmt.rs @@ -271,6 +271,18 @@ mod RT { fn uint_to_str(uint u) -> str { ret _uint.to_str(u, 10u); } + + fn bool_to_str(bool b) -> str { + if (b) { + ret "true"; + } else { + ret "false"; + } + } + + fn char_to_str(char c) -> str { + ret _str.from_char(c); + } } // Local Variables: |