Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


id: syntax aliases:

  • syntax tags:
  • syntax

Rust codeblocks

This contains various examples of codeblocks, specific to rust

Simple

fn main(){
    println!("Hello world!");
}

With Hidden lines

fn main(){
    println!("Hello world!");
}

Editable

fn main(){
    println!("Hello world!");
}