diff --git a/reference/Algorithm.h/Changed.md b/reference/Algorithm.h/Changed.md index 2ea87233..0527853c 100644 --- a/reference/Algorithm.h/Changed.md +++ b/reference/Algorithm.h/Changed.md @@ -1,6 +1,6 @@ --- layout: default -title: OnChanged +title: Changed type_tag: function groups: - {name: Home, url: ''} @@ -17,8 +17,8 @@ template typename D, typename S > -Events OnChangedTo(const Signal& target); +Events Changed(const Signal& target); {% endhighlight %} ## Semantics -Creates a token stream that emits when `target` is changed. \ No newline at end of file +Creates a token stream that emits when `target` is changed. diff --git a/reference/Algorithm.h/ChangedTo.md b/reference/Algorithm.h/ChangedTo.md index 22961681..d3e3ae86 100644 --- a/reference/Algorithm.h/ChangedTo.md +++ b/reference/Algorithm.h/ChangedTo.md @@ -1,6 +1,6 @@ --- layout: default -title: OnChangedTo +title: ChangedTo type_tag: function groups: - {name: Home, url: ''} @@ -18,7 +18,7 @@ template typename V, typename S = decay::type > -Events OnChangedTo(const Signal& target, V&& value); +Events ChangedTo(const Signal& target, V&& value); {% endhighlight %} ## Semantics diff --git a/tutorials/BasicAlgorithms.md b/tutorials/BasicAlgorithms.md index 26f6c56e..612f14c1 100644 --- a/tutorials/BasicAlgorithms.md +++ b/tutorials/BasicAlgorithms.md @@ -26,7 +26,7 @@ public: USING_REACTIVE_DOMAIN(D) EventSourceT Samples = MakeEventSource(); - SignalT LastSample = Hold(Samples); + SignalT LastSample = Hold(Samples, 0); }; {% endhighlight %} {% highlight C++ %} @@ -173,13 +173,13 @@ public: USING_REACTIVE_DOMAIN(D) EventSourceT Input = MakeEventSource(); - Signal Threshold = MakeSignal(10); + SignalT Threshold = MakeVar(10); // ... }; {% endhighlight %} -We could just use the `Value()` accessor of `Threadhold`: +We could just use the `Value()` accessor of `Threshold`: {% highlight C++ %} // Note: This is potentially unsafe SignalT> CriticalSamples = Iterate(