diff options
Diffstat (limited to 'vendor/mdbook/test_book/src/rust')
-rw-r--r-- | vendor/mdbook/test_book/src/rust/README.md | 1 | ||||
-rw-r--r-- | vendor/mdbook/test_book/src/rust/rust_codeblock.md | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/vendor/mdbook/test_book/src/rust/README.md b/vendor/mdbook/test_book/src/rust/README.md new file mode 100644 index 000000000..e3bb350f0 --- /dev/null +++ b/vendor/mdbook/test_book/src/rust/README.md @@ -0,0 +1 @@ +# Rust specific code examples diff --git a/vendor/mdbook/test_book/src/rust/rust_codeblock.md b/vendor/mdbook/test_book/src/rust/rust_codeblock.md new file mode 100644 index 000000000..5fb2b7249 --- /dev/null +++ b/vendor/mdbook/test_book/src/rust/rust_codeblock.md @@ -0,0 +1,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!"); +} +``` |