mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
Fix typo (#5057)
This commit is contained in:
parent
f0eb9dbebd
commit
546b5a9e5c
@ -243,8 +243,8 @@ private:
|
|||||||
// How to declare a member function
|
// How to declare a member function
|
||||||
fn AClass.is_ready() bool
|
fn AClass.is_ready() bool
|
||||||
{
|
{
|
||||||
// inside a member function, members can be accessed thrugh the
|
// inside a member function, members can be accessed through the
|
||||||
// this keyword and the field selector '.'
|
// 'this' keyword and the field selector '.'
|
||||||
return(this.public_var > 10);
|
return(this.public_var > 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user