Skip to content

Commit 2291f37

Browse files
Merge branch 'mr/460-update-rust-essentials-to-explain-file-naming-conventions' into 'master'
Resolve "Update Rust Essentials to explain file naming conventions" Closes #460 See merge request feng/training/material!602
2 parents aff6006 + 0e46023 commit 2291f37

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

courses/rust_essentials/020_hello_world/01_hello_world.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,16 @@ Hello World
4949
.. container:: animate 6-
5050

5151
* :rust:`println!` - macro for printing a string followed by newline
52+
53+
-------------------------
54+
File Naming Conventions
55+
-------------------------
56+
57+
* File extension is :filename:`.rs`
58+
* File name is the module name in :dfn:`snake case`
59+
60+
* All lower case, spaces replaced with underscore
61+
62+
.. note::
63+
64+
:rust:`fn main()` will be in file :filename:`main.rs`

0 commit comments

Comments
 (0)