mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Fix hoisting example
This commit is contained in:
parent
5de5021f89
commit
bfb73cb02b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user