2010-06-23 23:03:09 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
fn main() {
|
2012-07-14 00:57:48 -05:00
|
|
|
let s = ~"hello";
|
2011-08-19 14:01:01 -05:00
|
|
|
let c: u8 = s[4];
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, c);
|
2011-06-15 13:19:50 -05:00
|
|
|
assert (c == 0x6f as u8);
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|