Fix indentation
This commit is contained in:
parent
ed5148d7e6
commit
cced11e310
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ This is the code that we currently must write to use OOP in Nimrod:
|
|||
|
||||
```nimrod
|
||||
type Animal = ref object of TObject
|
||||
name: string
|
||||
age: int
|
||||
name: string
|
||||
age: int
|
||||
method vocalize(this: Animal): string = "..."
|
||||
method ageHumanYrs(this: Animal): int = this.age
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue