Complete conversion to nanoc
This commit is contained in:
parent
63eb103e85
commit
a77ddc8cdf
16 changed files with 48 additions and 4 deletions
|
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
title: Variables
|
||||
---
|
||||
# Variables
|
||||
|
||||
Nimrod supports three different types of variables, `let`, `var`, and `const`. As with most things, multiple variables can be declared in the same section.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
title: Result
|
||||
---
|
||||
# Result
|
||||
|
||||
The `result` variable is a special variable that serves as an implicit return variable. This is useful because in most cases, the control flow semantics of the `return` statement are unneeded. `result` is initialized with the default value for a given return type, so the following code starts as `0`, before being initialized to `number`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue