Complete conversion to nanoc

This commit is contained in:
flaviut 2014-06-01 02:46:12 -04:00
commit a77ddc8cdf
16 changed files with 48 additions and 4 deletions

View file

@ -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.

View file

@ -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`: