Skip to content

Commit

Permalink
docs(bindCallback): fix broken example
Browse files Browse the repository at this point in the history
* Error: someFunction is not defined

Error: someFunction is not defined

* Remove superfluous parens.
  • Loading branch information
peteichuk authored and benlesh committed Feb 7, 2019
1 parent a0a54b9 commit 82482b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/observable/bindCallback.ts
Expand Up @@ -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 => {
Expand Down

0 comments on commit 82482b2

Please sign in to comment.