summaryrefslogtreecommitdiffstats
path: root/vendor/mdbook/test_book/src/rust/rust_codeblock.md
blob: 5fb2b72496c635b3cb66ab68bbed65c19994b724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Rust codeblocks

This contains various examples of codeblocks, specific to rust

## Simple

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

## With Hidden lines

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

## Editable

```rust,editable
fn main(){
    println!("Hello world!");
}
```