Skip to content

Commit ef7ba7b

Browse files
yegeniypetebacondarwin
authored andcommitted
docs($provide): fix parentheses in example
1 parent b3a62b2 commit ef7ba7b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/auto/injector.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function annotate(fn) {
6262
}
6363
} else if (isArray(fn)) {
6464
last = fn.length - 1;
65-
assertArgFn(fn[last], 'fn')
65+
assertArgFn(fn[last], 'fn');
6666
$inject = fn.slice(0, last);
6767
} else {
6868
assertArgFn(fn, 'fn', true);
@@ -278,7 +278,7 @@ function annotate(fn) {
278278
*
279279
* beforeEach(module(function($provide) {
280280
* $provide.provider('greet', GreetProvider);
281-
* });
281+
* }));
282282
*
283283
* it('should greet', inject(function(greet) {
284284
* expect(greet('angular')).toEqual('Hello angular!');
@@ -291,9 +291,7 @@ function annotate(fn) {
291291
* inject(function(greet) {
292292
* expect(greet('angular')).toEqual('Ahoj angular!');
293293
* });
294-
* )};
295-
*
296-
* });
294+
* });
297295
* </pre>
298296
*/
299297

0 commit comments

Comments
 (0)