Skip to content

Commit 4e0f7b1

Browse files
BenjaminBrodwolfgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 8fcc65b commit 4e0f7b1

File tree

1 file changed

+3
-3
lines changed
  • forschungsarbeit-ip6-fortschrittliche-abstraktionen-im-lambda-kalkuel

1 file changed

+3
-3
lines changed

forschungsarbeit-ip6-fortschrittliche-abstraktionen-im-lambda-kalkuel/observable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ obsExample = obsExample( removeListener )( listenerExample );
8080
8181
```javascript
8282
let listenerVariable; // undefined
83-
const lisExample = newListener( nVal => oVal => listenerVariable = nVal );
83+
const listenerExample = newListener( nVal => oVal => listenerVariable = nVal );
8484
8585
// create observable and add listener
8686
let obsExample = Observable(42)
87-
(addListener)(lisExample);
87+
(addListener)(listenerExample);
8888
8989
listenerVariable // 42 <- get the value from initialValue
9090
9191
// set new value and update listeners
92-
obsExample = obsExample(setValue)(11)
92+
obsExample = obsExample(setValue)(11);
9393
9494
// receive the update
9595
listenerVariable // 11

0 commit comments

Comments
 (0)