Merge pull request #459 from dagolinuxoid/patch-1

typo: it's > its
This commit is contained in:
Ilya Kantor 2018-07-09 21:34:37 +03:00 committed by GitHub
commit 26893e1ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,7 +312,7 @@ The result of a property access `user.hi` is not a function, but a value of Refe
(user, "hi", true)
```
When parentheses `()` are called on the Reference Type, they receive the full information about the object and it's method, and can set the right `this` (`=user` in this case).
When parentheses `()` are called on the Reference Type, they receive the full information about the object and its method, and can set the right `this` (`=user` in this case).
Any other operation like assignment `hi = user.hi` discards the reference type as a whole, takes the value of `user.hi` (a function) and passes it on. So any further operation "loses" `this`.