Skip to content

Commit 71a0698

Browse files
authored
Minor grammar fix (#2149)
Signed-off-by: Yadunund <[email protected]>
1 parent 73d555b commit 71a0698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ NodeParameters::undeclare_parameter(const std::string & name)
651651
}
652652
if (!parameter_info->second.descriptor.dynamic_typing) {
653653
throw rclcpp::exceptions::InvalidParameterTypeException{
654-
name, "cannot undeclare an statically typed parameter"};
654+
name, "cannot undeclare a statically typed parameter"};
655655
}
656656

657657
parameters_.erase(parameter_info);
@@ -824,7 +824,7 @@ NodeParameters::set_parameters_atomically(const std::vector<rclcpp::Parameter> &
824824
auto it = parameters_.find(parameter.get_name());
825825
if (it != parameters_.end() && rclcpp::PARAMETER_NOT_SET != it->second.value.get_type()) {
826826
if (!it->second.descriptor.dynamic_typing) {
827-
result.reason = "cannot undeclare an statically typed parameter";
827+
result.reason = "cannot undeclare a statically typed parameter";
828828
result.successful = false;
829829
return result;
830830
}

0 commit comments

Comments
 (0)