Ver código fonte

Fix catch documentation indentation;

bjorn 9 anos atrás
pai
commit
dda791a67e
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      rx.lua
  2. 1 1
      src/operators/catch.lua

+ 1 - 1
rx.lua

@@ -393,7 +393,7 @@ end
 --- Returns an Observable that intercepts any errors from the previous and replace them with values
 -- produced by a new Observable.
 -- @arg {function|Observable} handler - An Observable or a function that returns an Observable to
---                                       replace the source Observable in the event of an error.
+--                                      replace the source Observable in the event of an error.
 -- @returns {Observable}
 function Observable:catch(handler)
   handler = handler and (type(handler) == 'function' and handler or util.constant(handler))

+ 1 - 1
src/operators/catch.lua

@@ -4,7 +4,7 @@ local util = require 'util'
 --- Returns an Observable that intercepts any errors from the previous and replace them with values
 -- produced by a new Observable.
 -- @arg {function|Observable} handler - An Observable or a function that returns an Observable to
---                                       replace the source Observable in the event of an error.
+--                                      replace the source Observable in the event of an error.
 -- @returns {Observable}
 function Observable:catch(handler)
   handler = handler and (type(handler) == 'function' and handler or util.constant(handler))