Skip to content

Commit b4c5d8d

Browse files
committed
Merge pull request #726 from ericcarraway/typo-fix-01
fix typo: declaration => declarations
2 parents d0bf5ab + 507600b commit b4c5d8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

a1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
535535

536536
*Why?*: Placing the implementation details of a function later in the file moves that complexity out of view so you can see the important stuff up top.
537537

538-
*Why?*: Function declaration are hoisted so there are no concerns over using a function before it is defined (as there would be with function expressions).
538+
*Why?*: Function declarations are hoisted so there are no concerns over using a function before it is defined (as there would be with function expressions).
539539

540540
*Why?*: You never have to worry with function declarations that moving `var a` before `var b` will break your code because `a` depends on `b`.
541541

@@ -844,7 +844,7 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
844844

845845
*Why?*: Placing the implementation details of a function later in the file moves that complexity out of view so you can see the important stuff up top.
846846

847-
*Why?*: Function declaration are hoisted so there are no concerns over using a function before it is defined (as there would be with function expressions).
847+
*Why?*: Function declarations are hoisted so there are no concerns over using a function before it is defined (as there would be with function expressions).
848848

849849
*Why?*: You never have to worry with function declarations that moving `var a` before `var b` will break your code because `a` depends on `b`.
850850

0 commit comments

Comments
 (0)