Skip to content

Commit a37705c

Browse files
authored
Rename get_topic to topic_name (#209)
1 parent e0dad8b commit a37705c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rclrs/src/node/publisher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ where
102102
///
103103
/// This returns the topic name after remapping, so it is not necessarily the
104104
/// topic name which was used when creating the publisher.
105-
pub fn get_topic(&self) -> String {
105+
pub fn topic_name(&self) -> String {
106106
// SAFETY: No preconditions for the functions called.
107107
// The unsafe variables created get converted to safe types before being returned
108108
unsafe {

rclrs/src/node/subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ where
129129
///
130130
/// This returns the topic name after remapping, so it is not necessarily the
131131
/// topic name which was used when creating the subscription.
132-
pub fn get_topic(&self) -> String {
132+
pub fn topic_name(&self) -> String {
133133
// SAFETY: No preconditions for the function used
134134
// The unsafe variables get converted to safe types before being returned
135135
unsafe {

0 commit comments

Comments
 (0)