Back to Editor Md

CodeMirror

lib/codemirror/mode/rust/index.html

1.5.0248 B
Original Source

Rust mode

// Demo code. type foo = int; enum bar { some(int, foo), none } fn check_crate(x: int) { let v = 10; alt foo { 1 to 3 { print_foo(); if x { blah() + 10; } } (x, y) { "bye" } _ { "hi" } } }

MIME types defined: text/x-rustsrc.