Skip to content

Commit 0e46023

Browse files
Resolve "Update Rust Essentials to explain file naming conventions"
1 parent e5d710a commit 0e46023

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)