Permalink
Browse files

Fix more typos.

  • Loading branch information...
1 parent 469521b commit 2e9c1371bd19780982c62aef9c66f953ac92ec9d @Gozala committed Apr 19, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 _posts/JS/2012-04-26-code-logic-not-mechanics.md
View
7 _posts/JS/2012-04-26-code-logic-not-mechanics.md
@@ -155,11 +155,12 @@ necessary has to be the case:
console.log(sum(1, 2)) // => 3
// Will also accept promises as arguments
- var a = defer() // make promise
+ var deferred = defer() // make promise
+ var a = deferred.promise
var b = sum(a, 1)
var c = sum(b, 5)
- console.log(c) // eventually prints => 17
- a.resolve(11) // fulfill promise
+ console.log(c) // eventually prints => 17
+ deferred.resolve(11) // fulfill promise
We should not be handling and propagating exceptions manually in each function,
we should only handle them when we plan to recover:

0 comments on commit 2e9c137

Please sign in to comment.