Skip to content

Commit b42f5b9

Browse files
YadunundAlberto Soragna
authored andcommitted
Minor grammar fix (ros2#2149)
Signed-off-by: Yadunund <[email protected]>
1 parent 836345f commit b42f5b9

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
@@ -547,7 +547,7 @@ NodeParameters::undeclare_parameter(const std::string & name)
547547
}
548548
if (!parameter_info->second.descriptor.dynamic_typing) {
549549
throw rclcpp::exceptions::InvalidParameterTypeException{
550-
name, "cannot undeclare an statically typed parameter"};
550+
name, "cannot undeclare a statically typed parameter"};
551551
}
552552

553553
parameters_.erase(parameter_info);
@@ -702,7 +702,7 @@ NodeParameters::set_parameters_atomically(const std::vector<rclcpp::Parameter> &
702702
auto it = parameters_.find(parameter.get_name());
703703
if (it != parameters_.end() && rclcpp::PARAMETER_NOT_SET != it->second.value.get_type()) {
704704
if (!it->second.descriptor.dynamic_typing) {
705-
result.reason = "cannot undeclare an statically typed parameter";
705+
result.reason = "cannot undeclare a statically typed parameter";
706706
result.successful = false;
707707
return result;
708708
}

0 commit comments

Comments
 (0)