Skip to content

Commit 288be9c

Browse files
Add missing 's' to 'NodeParametersInterface' in doc/comment (#2831) (#2833)
(cherry picked from commit b1ec85d) Signed-off-by: Christophe Bedard <[email protected]> Co-authored-by: Christophe Bedard <[email protected]>
1 parent 93028ff commit 288be9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rclcpp/include/rclcpp/node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ class Node : public std::enable_shared_from_this<Node>
15601560
* has an additional sub-namespace (short for subordinate namespace)
15611561
* associated with it.
15621562
* A subordinate node and an instance of this class share all the node interfaces
1563-
* such as `rclcpp::node_interfaces::NodeParameterInterface`.
1563+
* such as `rclcpp::node_interfaces::NodeParametersInterface`.
15641564
* Subordinate nodes are primarily used to organize namespaces and provide a
15651565
* hierarchical structure, but they are not meant to be completely independent nodes.
15661566
* The sub-namespace will extend the node's namespace for the purpose of

rclcpp/test/rclcpp/test_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ TEST_F(TestNode, subnode_parameter_operation) {
313313

314314
auto value = subnode->declare_parameter("param", 5);
315315
EXPECT_EQ(value, 5);
316-
// node and sub-node shares NodeParameterInterface, so expecting the exception.
316+
// node and sub-node shares NodeParametersInterface, so expecting the exception.
317317
EXPECT_THROW(
318318
node->declare_parameter("param", 0),
319319
rclcpp::exceptions::ParameterAlreadyDeclaredException);

0 commit comments

Comments
 (0)