Better method name
This commit is contained in:
parent
8c427f1bb2
commit
de87c3d1d3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
proc getLetterA(): string =
|
||||
proc getAlphabet(): string =
|
||||
result = ""
|
||||
for letter in 'a'..'z':
|
||||
result.add(letter)
|
||||
|
||||
const abcs = getLetterA()
|
||||
const abcs = getAlphabet()
|
||||
var
|
||||
foo = "bar"
|
||||
bar = "foo"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue