diff options
| author | Said Aspen <mail@saidaspen.se> | 2020-04-14 10:13:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-14 10:13:20 +0200 |
| commit | 5999acd24a4f203292be36e0fd18d385887ec481 (patch) | |
| tree | f2eeebedf15fe24de1b44f0fdd8414b10708408a /info.toml | |
| parent | 59f56b24d965ef0ab4da74237d6ef828c2f4f848 (diff) | |
feat: Add exercise variables6 covering const (#352)
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -56,6 +56,21 @@ You can read more about 'Shadowing' in the book's section 'Variables and Mutabil https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing Try to solve this exercise afterwards using this technique.""" +[[exercises]] +name = "variables6" +path = "exercises/variables/variables6.rs" +mode = "compile" +hint = """ +We know about variables and mutability, but there is another important type of +variable available; constants. +Constants are always immutable and they are declared with keyword 'const' rather +then keyword 'let'. +Constants types must also always be annotated. + +Read more about constants under 'Differences Between Variables and Constants' in the book's section 'Variables and Mutability': +https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html +""" + # IF [[exercises]] |
