From 13b8e42fc66e2893c6edd105f363d4c3de4361a3 Mon Sep 17 00:00:00 2001 From: limerickgds Date: Thu, 2 Mar 2017 11:15:25 +0800 Subject: [PATCH] docs(bindNodeCallback): fix boundSomeFunction should be called --- src/observable/BoundCallbackObservable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/observable/BoundCallbackObservable.ts b/src/observable/BoundCallbackObservable.ts index 70f36a0028..2d58de30b2 100644 --- a/src/observable/BoundCallbackObservable.ts +++ b/src/observable/BoundCallbackObservable.ts @@ -116,7 +116,7 @@ export class BoundCallbackObservable extends Observable { * }); * * const boundSomeFunction = Rx.Observable.bindCallback(someFunction); - * boundSomeFunction.subscribe(values => { + * boundSomeFunction().subscribe(values => { * console.log(values) // [5, 'some string', {someProperty: 'someValue'}] * }); * @@ -129,7 +129,7 @@ export class BoundCallbackObservable extends Observable { * }); * * const boundSomeFunction = Rx.Observable.bindCallback(someFunction, (a, b, c) => a + b + c); - * boundSomeFunction.subscribe(value => { + * boundSomeFunction().subscribe(value => { * console.log(value) // 'abc' * }); *