Fix bug in **
This commit is contained in:
parent
eeb6d805f7
commit
039abf38fa
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ The `result` variable is a special variable that serves as an implicit return va
|
|||
|
||||
``` nimrod
|
||||
proc `**`(number, power: int): int =
|
||||
result = number
|
||||
result = 1
|
||||
for i in 1..power:
|
||||
result *= number
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue