mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs($provide): fix parentheses in example
This commit is contained in:
parent
dcdf4fc78b
commit
e351874a0a
1 changed files with 3 additions and 5 deletions
|
|
@ -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>
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue