Commit 7dd7e7d3 authored by Dominik Charousset's avatar Dominik Charousset

Fix manual refs

parent 786ece05
......@@ -5,7 +5,7 @@
// This file is partially included in the manual, do not modify
// without updating the references in the *.tex files!
// Manual references: lines 18-50 (Actor.tex)
// Manual references: lines 20-52 (Actor.tex)
#include <iostream>
......
......@@ -35,7 +35,8 @@ void hello_world(event_based_actor* self, const actor& buddy) {
int main() {
// our CAF environment
actor_system system;
actor_system_config cfg;
actor_system system{cfg};
// create a new actor that calls 'mirror()'
auto mirror_actor = system.spawn(mirror);
// create another actor that calls 'hello_world(mirror_actor)';
......
......@@ -2,8 +2,8 @@
* A very basic, interactive divider. *
\******************************************************************************/
// Manual refs: 19-25, 35-48, 63-73 (MessagePassing);
// 19-34, 51-56 (Error)
// Manual refs: 19-25, 35-48, 68-77 (MessagePassing);
// 19-34, 50-58 (Error)
#include <iostream>
......@@ -33,7 +33,7 @@ std::string to_string(math_error x) {
}
}
using div_atom = atom_constant<atom("add")>;
using div_atom = atom_constant<atom("div")>;
using divider = typed_actor<replies_to<div_atom, double, double>::with<double>>;
......
......@@ -4,7 +4,7 @@
// This file is partially included in the manual, do not modify
// without updating the references in the *.tex files!
// Manual references: lines 20-37, 39-51, 53-58, 62-64 (MessagePassing.tex)
// Manual references: lines 20-37, 39-51, 53-64, 68-70 (MessagePassing.tex)
#include <vector>
#include <chrono>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment