Better method name

This commit is contained in:
flaviut 2014-05-29 15:53:24 -04:00
commit de87c3d1d3

View file

@ -3,12 +3,12 @@
Nimrod supports three different types of variables, `let`, `var`, and `const`. As with most things, multiple variables can be declared in the same section. Nimrod supports three different types of variables, `let`, `var`, and `const`. As with most things, multiple variables can be declared in the same section.
``` nimrod ``` nimrod
proc getLetterA(): string = proc getAlphabet(): string =
result = "" result = ""
for letter in 'a'..'z': for letter in 'a'..'z':
result.add(letter) result.add(letter)
const abcs = getLetterA() const abcs = getAlphabet()
var var
foo = "bar" foo = "bar"
bar = "foo" bar = "foo"