Skip to content

Commit e58eb77

Browse files
committed
ch2: fixing code typo
1 parent cd01bc7 commit e58eb77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manuscript/ch2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,13 @@ f( "Hello!" ); // HELLO!
569569

570570
```js
571571
function foo() {
572-
bar( function inner(msg){
572+
return bar( function inner(msg){
573573
return msg.toUpperCase();
574574
} );
575575
}
576576

577577
function bar(func) {
578-
func( "Hello!" );
578+
return func( "Hello!" );
579579
}
580580

581581
foo(); // HELLO!

0 commit comments

Comments
 (0)