From d1465dd0f704bb507a641f01ec07147d04c1242d Mon Sep 17 00:00:00 2001 From: istareatscreens Date: Tue, 14 Sep 2021 14:55:24 -0400 Subject: [PATCH] Reword External Function Calls paragraph in docs Reword External Function Calls opening paragraph to improve clarity --- docs/control-structures.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 37a4fcd12..1de35cf6b 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -65,9 +65,10 @@ uses up at least one stack slot and there are only 1024 slots available. External Function Calls ----------------------- -The expressions ``this.g(8);`` and ``c.g(2);`` (where ``c`` is a contract -instance) are also valid function calls, but this time, the function -will be called "externally", via a message call and not directly via jumps. +Functions can also be called using the ``this.g(8);`` and ``c.g(2);`` notation, where +``c`` is a contract instance and ``g`` is a function belonging to ``c``. +Calling the function ``g`` via either way results in it being called "externally", using a +message call and not directly via jumps. Please note that function calls on ``this`` cannot be used in the constructor, as the actual contract has not been created yet.