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 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue