Merge pull request #13345 from minaminao/docs-this-no-longer-works-in-free-function

Update description of `this` in free functions
This commit is contained in:
Kamil Śliwak 2022-08-05 23:47:09 +02:00 committed by GitHub
commit 49a2db99e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,10 +35,10 @@ that call them, similar to internal library functions.
.. note::
Functions defined outside a contract are still always executed
in the context of a contract. They still have access to the variable ``this``,
can call other contracts, send them Ether and destroy the contract that called them,
in the context of a contract.
They still can call other contracts, send them Ether and destroy the contract that called them,
among other things. The main difference to functions defined inside a contract
is that free functions do not have direct access to storage variables and functions
is that free functions do not have direct access to the variable ``this``, storage variables and functions
not in their scope.
.. _function-parameters-return-variables: