Skip to content

Commit 59254e8

Browse files
committed
Documentation typos. Fixes #13
1 parent a7452ee commit 59254e8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

reference/Algorithm.h/Changed.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: OnChanged
3+
title: Changed
44
type_tag: function
55
groups:
66
- {name: Home, url: ''}
@@ -17,8 +17,8 @@ template
1717
typename D,
1818
typename S
1919
>
20-
Events<D,Token> OnChangedTo(const Signal<D,S>& target);
20+
Events<D,Token> Changed(const Signal<D,S>& target);
2121
{% endhighlight %}
2222

2323
## Semantics
24-
Creates a token stream that emits when `target` is changed.
24+
Creates a token stream that emits when `target` is changed.

reference/Algorithm.h/ChangedTo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: OnChangedTo
3+
title: ChangedTo
44
type_tag: function
55
groups:
66
- {name: Home, url: ''}
@@ -18,7 +18,7 @@ template
1818
typename V,
1919
typename S = decay<V>::type
2020
>
21-
Events<D,Token> OnChangedTo(const Signal<D,S>& target, V&& value);
21+
Events<D,Token> ChangedTo(const Signal<D,S>& target, V&& value);
2222
{% endhighlight %}
2323

2424
## Semantics

tutorials/BasicAlgorithms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public:
2626
USING_REACTIVE_DOMAIN(D)
2727

2828
EventSourceT<int> Samples = MakeEventSource<int>();
29-
SignalT<int> LastSample = Hold(Samples);
29+
SignalT<int> LastSample = Hold(Samples, 0);
3030
};
3131
{% endhighlight %}
3232
{% highlight C++ %}
@@ -173,13 +173,13 @@ public:
173173
USING_REACTIVE_DOMAIN(D)
174174

175175
EventSourceT<int> Input = MakeEventSource<D,int>();
176-
Signal<int> Threshold = MakeSignal<D>(10);
176+
SignalT<int> Threshold = MakeSignal<D>(10);
177177

178178
// ...
179179
};
180180
{% endhighlight %}
181181

182-
We could just use the `Value()` accessor of `Threadhold`:
182+
We could just use the `Value()` accessor of `Threshold`:
183183
{% highlight C++ %}
184184
// Note: This is potentially unsafe
185185
SignalT<vector<int>> CriticalSamples = Iterate(

0 commit comments

Comments
 (0)