Skip to content

Commit 154fb87

Browse files
letsmakesensejamesdaily
letsmakesense
authored andcommitted
docs($q): note that function okToGreet is expected to be defined in example
the function okToGreet wasn't defined, so this example wouldn't work properly. I've decided that instead of adding unrelated code to the example, it should just be noted that the function is expected to be defined in the lexical scope. Closes angular#5878
1 parent c164ef0 commit 154fb87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/q.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
1717
*
1818
* <pre>
19-
* // for the purpose of this example let's assume that variables `$q` and `scope` are
20-
* // available in the current lexical scope (they could have been injected or passed in).
21-
*
19+
* // for the purpose of this example let's assume that variables `$q`, `scope` and `okToGreet`
20+
* // are available in the current lexical scope (they could have been injected or passed in).
21+
*
2222
* function asyncGreet(name) {
2323
* var deferred = $q.defer();
2424
*

0 commit comments

Comments
 (0)