From 82482b2849ecaee9a22511ad9aa236d67b24dbe9 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Feb 2019 05:45:07 +0200 Subject: [PATCH] docs(bindCallback): fix broken example * Error: someFunction is not defined Error: someFunction is not defined * Remove superfluous parens. --- src/internal/observable/bindCallback.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/observable/bindCallback.ts b/src/internal/observable/bindCallback.ts index f4e701ac41..939ee4925e 100644 --- a/src/internal/observable/bindCallback.ts +++ b/src/internal/observable/bindCallback.ts @@ -125,11 +125,11 @@ export function bindCallback(callbackFunc: Function, scheduler?: SchedulerLike): * ```javascript * import { bindCallback } from 'rxjs'; * - * someFunction((a, b, c) => { + * const someFunction = (a, b, c) => { * console.log(a); // 5 * console.log(b); // 'some string' * console.log(c); // {someProperty: 'someValue'} - * }); + * }; * * const boundSomeFunction = bindCallback(someFunction); * boundSomeFunction().subscribe(values => {