From 796fb2cfad3dd7172d648313a4cb8ca68735a5be Mon Sep 17 00:00:00 2001 From: minami Date: Thu, 4 Aug 2022 15:17:32 +0900 Subject: [PATCH] Fix description of `this` in free functions --- docs/contracts/functions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/contracts/functions.rst b/docs/contracts/functions.rst index 76304aaad..eebd1d45a 100644 --- a/docs/contracts/functions.rst +++ b/docs/contracts/functions.rst @@ -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: