PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/str-idx.rs

http://github.com/jruderman/rust
Rust | 8 lines | 6 code | 2 blank | 0 comment | 1 complexity | fdd19d53f442b1be0c99b81d4daa01c4 MD5 | raw file
1
2
3fn main() {
4    let s = ~"hello";
5    let c: u8 = s[4];
6    log(debug, c);
7    assert (c == 0x6f as u8);
8}