Commit 043ddd48 authored by Dominik Charousset's avatar Dominik Charousset

Fix typos

parent 640e8bd2
...@@ -16,7 +16,7 @@ endfunction() ...@@ -16,7 +16,7 @@ endfunction()
# -- examples for CAF::core ---------------------------------------------------- # -- examples for CAF::core ----------------------------------------------------
# introductionary applications # introductory applications
add_core_example(. aout) add_core_example(. aout)
add_core_example(. hello_world) add_core_example(. hello_world)
......
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
"sizeof(node_id) != sizeof(size_t)"); "sizeof(node_id) != sizeof(size_t)");
static_assert(sizeof(data_destructor) == sizeof(void*), static_assert(sizeof(data_destructor) == sizeof(void*),
"functiion pointer and regular pointers have different size"); "function pointer and regular pointers have different size");
/// Returns a pointer to the actual actor instance. /// Returns a pointer to the actual actor instance.
abstract_actor* get() { abstract_actor* get() {
......
...@@ -20,7 +20,7 @@ namespace caf { ...@@ -20,7 +20,7 @@ namespace caf {
template <class T> template <class T>
class optional { class optional {
public: public:
/// Typdef for `T`. /// Type alias for `T`.
using type = T; using type = T;
using value_type = T; using value_type = T;
......
...@@ -132,7 +132,7 @@ behavior config_serv_impl(stateful_actor<kvstate>* self) { ...@@ -132,7 +132,7 @@ behavior config_serv_impl(stateful_actor<kvstate>* self) {
// A spawn server allows users to spawn actors dynamically with a name and a // A spawn server allows users to spawn actors dynamically with a name and a
// message containing the data for initialization. By accessing the spawn server // message containing the data for initialization. By accessing the spawn server
// on another node, users can spwan actors remotely. // on another node, users can spawn actors remotely.
struct spawn_serv_state { struct spawn_serv_state {
static inline const char* name = "caf.system.spawn-server"; static inline const char* name = "caf.system.spawn-server";
......
...@@ -75,7 +75,7 @@ struct fixture { ...@@ -75,7 +75,7 @@ struct fixture {
BEGIN_FIXTURE_SCOPE(fixture) BEGIN_FIXTURE_SCOPE(fixture)
CAF_TEST(empty_function_fiew) { CAF_TEST(empty_function_view) {
function_view<calculator> f; function_view<calculator> f;
CHECK_EQ(f(10, 20), sec::bad_function_call); CHECK_EQ(f(10, 20), sec::bad_function_call);
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "caf/type_id.hpp" #include "caf/type_id.hpp"
// Unfortunately required, because we cannot add a forward declaration for the // Unfortunately required, because we cannot add a forward declaration for the
// enum protol::network that we need for assigning a type ID to // enum protocol::network that we need for assigning a type ID to
// io::network::address_listing. // io::network::address_listing.
#include "caf/io/network/protocol.hpp" #include "caf/io/network/protocol.hpp"
......
...@@ -97,7 +97,7 @@ public: ...@@ -97,7 +97,7 @@ public:
/// Creates an instance using the networking backend compiled with CAF. /// Creates an instance using the networking backend compiled with CAF.
static std::unique_ptr<multiplexer> make(actor_system& sys); static std::unique_ptr<multiplexer> make(actor_system& sys);
/// Exectutes all pending events without blocking. /// Executes all pending events without blocking.
/// @returns `true` if at least one event was called, `false` otherwise. /// @returns `true` if at least one event was called, `false` otherwise.
virtual bool try_run_once() = 0; virtual bool try_run_once() = 0;
......
...@@ -451,7 +451,7 @@ directly on the underlying type of the ``enum class`` otherwise. ...@@ -451,7 +451,7 @@ directly on the underlying type of the ``enum class`` otherwise.
monday, monday,
tuesday, tuesday,
wednesday, wednesday,
thurday, thursday,
friday, friday,
saturday, saturday,
sunday, sunday,
......
...@@ -83,7 +83,7 @@ elif [ "$1" = "--nightly" ] ; then ...@@ -83,7 +83,7 @@ elif [ "$1" = "--nightly" ] ; then
packageVersion="${versionAsStr}.$(date +%Y%m%d)" packageVersion="${versionAsStr}.$(date +%Y%m%d)"
else else
# Don't prevent other branches from building, but issue a warning. # Don't prevent other branches from building, but issue a warning.
echo "Use with either '--nightly' or '--release'. Exitting." >&2 echo "Use with either '--nightly' or '--release'. Exiting." >&2
exit exit
fi fi
......
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