Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/behaviortree_cpp/utils/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace BT
{
/**
* Super simple Signal/Slop implementation, AKA "Observable pattern".
* Super simple Signal/Slot implementation, AKA "Observable pattern".
* The subscriber is active until it goes out of scope or Subscriber::reset() is called.
*/
template <typename... CallableArgs>
Expand All @@ -34,7 +34,7 @@ class Signal
}
}

Subscriber subscribe(CallableFunction func)
[[nodiscard]] Subscriber subscribe(CallableFunction func)
{
Subscriber sub = std::make_shared<CallableFunction>(std::move(func));
subscribers_.emplace_back(sub);
Expand Down
Loading