mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-14 01:33:11 +00:00
docs($provide): fix parentheses in example
This commit is contained in:
parent
b3a62b2e19
commit
ef7ba7b212
1 changed files with 3 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ function annotate(fn) {
|
||||||
}
|
}
|
||||||
} else if (isArray(fn)) {
|
} else if (isArray(fn)) {
|
||||||
last = fn.length - 1;
|
last = fn.length - 1;
|
||||||
assertArgFn(fn[last], 'fn')
|
assertArgFn(fn[last], 'fn');
|
||||||
$inject = fn.slice(0, last);
|
$inject = fn.slice(0, last);
|
||||||
} else {
|
} else {
|
||||||
assertArgFn(fn, 'fn', true);
|
assertArgFn(fn, 'fn', true);
|
||||||
|
|
@ -278,7 +278,7 @@ function annotate(fn) {
|
||||||
*
|
*
|
||||||
* beforeEach(module(function($provide) {
|
* beforeEach(module(function($provide) {
|
||||||
* $provide.provider('greet', GreetProvider);
|
* $provide.provider('greet', GreetProvider);
|
||||||
* });
|
* }));
|
||||||
*
|
*
|
||||||
* it('should greet', inject(function(greet) {
|
* it('should greet', inject(function(greet) {
|
||||||
* expect(greet('angular')).toEqual('Hello angular!');
|
* expect(greet('angular')).toEqual('Hello angular!');
|
||||||
|
|
@ -291,9 +291,7 @@ function annotate(fn) {
|
||||||
* inject(function(greet) {
|
* inject(function(greet) {
|
||||||
* expect(greet('angular')).toEqual('Ahoj angular!');
|
* expect(greet('angular')).toEqual('Ahoj angular!');
|
||||||
* });
|
* });
|
||||||
* )};
|
* });
|
||||||
*
|
|
||||||
* });
|
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue