From bfb73cb02b1312bf187d903993bdd44be1bf36de Mon Sep 17 00:00:00 2001 From: Al <80943867+al-ias@users.noreply.github.com> Date: Fri, 22 Jul 2022 19:40:24 +0200 Subject: Fix hoisting example --- solidity.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity.html.markdown b/solidity.html.markdown index c52d2002..2006333e 100644 --- a/solidity.html.markdown +++ b/solidity.html.markdown @@ -435,7 +435,7 @@ function increment(uint x) view returns (uint x) { // Functions hoisted - and can assign a function to a variable function a() { var z = b; - b(); + z(); } function b() { -- cgit v1.2.3