Tutorial: 'import std;' should be 'use std;'.
This commit is contained in:
parent
05c9c73756
commit
ce8c5b0340
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ suppressed by using a variable name that starts with an underscore.
|
|||
The `let` keyword, as we've seen, introduces a local variable. Global
|
||||
constants can be defined with `const`:
|
||||
|
||||
import std;
|
||||
use std;
|
||||
const repeat: uint = 5u;
|
||||
fn main() {
|
||||
let count = 0u;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue