diff --git a/rclcpp/include/rclcpp/qos.hpp b/rclcpp/include/rclcpp/qos.hpp index 0943d9ad96..512a6386fa 100644 --- a/rclcpp/include/rclcpp/qos.hpp +++ b/rclcpp/include/rclcpp/qos.hpp @@ -106,7 +106,7 @@ class RCLCPP_PUBLIC QoS /// 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 92108bfc66..a909f30966 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); }