Skip to content

Commit 405bab5

Browse files
mkolodnyjamesdaily
authored andcommitted
docs($injector): use correct spacing convention for CoffeeScript functions
This convention is exhibited by http://coffeescript.org/ and https://github.com/polarmobile/coffeescript-style-guide#functions. Closes angular#5354
1 parent 8fdd8fd commit 405bab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/auto/injector.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -485,15 +485,15 @@ function annotate(fn) {
485485
* {@link AUTO.$provide#methods_service $provide.service(class)} that is defined as a CoffeeScript class.
486486
* <pre>
487487
* class Ping
488-
* constructor: (@$http)->
489-
* send: ()=>
488+
* constructor: (@$http) ->
489+
* send: () =>
490490
* @$http.get('/ping')
491491
*
492492
* $provide.service('ping', ['$http', Ping])
493493
* </pre>
494494
* You would then inject and use this service like this:
495495
* <pre>
496-
* someModule.controller 'Ctrl', ['ping', (ping)->
496+
* someModule.controller 'Ctrl', ['ping', (ping) ->
497497
* ping.send()
498498
* ]
499499
* </pre>

0 commit comments

Comments
 (0)