diff --git a/rclcpp/include/rclcpp/qos.hpp b/rclcpp/include/rclcpp/qos.hpp index 0943d9a..512a638 100644 --- a/rclcpp/include/rclcpp/qos.hpp +++ b/rclcpp/include/rclcpp/qos.hpp @@ -106,7 +106,7 @@ public: /// Set the durability setting to volatile. QoS & - volitile(); + volatile(); /// Set the durability setting to transient local. QoS & diff --git a/rclcpp/src/rclcpp/qos.cpp b/rclcpp/src/rclcpp/qos.cpp index 92108bf..a909f30 100644 --- a/rclcpp/src/rclcpp/qos.cpp +++ b/rclcpp/src/rclcpp/qos.cpp @@ -120,7 +120,7 @@ QoS::durability(rmw_qos_durability_policy_t durability) } QoS & -QoS::volitile() +QoS::volatile() { return this->durability(RMW_QOS_POLICY_DURABILITY_VOLATILE); }