diff options
| author | Eugene Wolfson | 2013-04-29 14:44:08 -0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-04-30 10:16:24 +0100 |
| commit | ef7ba7b212b0ce49fed28ffb305948c323985b1f (patch) | |
| tree | 6e9acca02d6b7491653e4b82577e4f91b81aac11 /src/auto/injector.js | |
| parent | b3a62b2e19b1743df52034d4d7a0405e6a65f925 (diff) | |
| download | angular.js-ef7ba7b212b0ce49fed28ffb305948c323985b1f.tar.bz2 | |
docs($provide): fix parentheses in example
Diffstat (limited to 'src/auto/injector.js')
| -rw-r--r-- | src/auto/injector.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/auto/injector.js b/src/auto/injector.js index d80a32de..b309cff3 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -62,7 +62,7 @@ function annotate(fn) { } } else if (isArray(fn)) { last = fn.length - 1; - assertArgFn(fn[last], 'fn') + assertArgFn(fn[last], 'fn'); $inject = fn.slice(0, last); } else { assertArgFn(fn, 'fn', true); @@ -278,7 +278,7 @@ function annotate(fn) { * * beforeEach(module(function($provide) { * $provide.provider('greet', GreetProvider); - * }); + * })); * * it('should greet', inject(function(greet) { * expect(greet('angular')).toEqual('Hello angular!'); @@ -291,9 +291,7 @@ function annotate(fn) { * inject(function(greet) { * expect(greet('angular')).toEqual('Ahoj angular!'); * }); - * )}; - * - * }); + * }); * </pre> */ |
