@@ -408,10 +408,12 @@ impl NodeState {
408408
409409 /// Creates a [`DynamicPublisher`], a publisher whose type is only known at runtime.
410410 ///
411- /// Refer to [`Node::create_publisher`] for the API, the only key difference is that the
411+ /// Refer to [`Node::create_publisher`][1] for the API, the only key difference is that the
412412 /// publisher's message type is passed as a [`crate::MessageTypeName`] parameter.
413413 ///
414414 /// Pass in only the topic name for the `options` argument to use all default publisher options:
415+ ///
416+ /// [1]: crate::NodeState::create_publisher
415417 /// ```
416418 /// # use rclrs::*;
417419 /// # let executor = Context::default().create_basic_executor();
@@ -824,7 +826,7 @@ impl NodeState {
824826
825827 /// Creates a [`DynamicSubscription`] with an ordinary callback.
826828 ///
827- /// For the behavior and API refer to [`Node::create_subscription`], except two key
829+ /// For the behavior and API refer to [`Node::create_subscription`][1] , except two key
828830 /// differences:
829831 ///
830832 /// - The message type is determined at runtime through the `topic_type` function parameter.
@@ -834,6 +836,8 @@ impl NodeState {
834836 /// # Message type passing
835837 ///
836838 /// The message type can be passed as a [`crate::MessageTypeName`] struct. The struct also implements `TryFrom<&str>`
839+ ///
840+ /// [1]: crate::NodeState::create_publisher
837841 /// ```
838842 /// # use rclrs::*;
839843 /// # let executor = Context::default().create_basic_executor();
@@ -879,7 +883,7 @@ impl NodeState {
879883
880884 /// Creates a [`DynamicSubscription`] with an async callback.
881885 ///
882- /// For the behavior and API refer to [`Node::create_async_subscription`], except two key
886+ /// For the behavior and API refer to [`Node::create_async_subscription`][1] , except two key
883887 /// differences:
884888 ///
885889 /// - The message type is determined at runtime through the `topic_type` function parameter.
@@ -889,6 +893,8 @@ impl NodeState {
889893 /// # Message type passing
890894 ///
891895 /// The message type can be passed as a [`crate::MessageTypeName`] struct. The struct also implements `TryFrom<&str>`
896+ ///
897+ /// [1]: crate::NodeState::create_async_subscription
892898 /// ```
893899 /// # use rclrs::*;
894900 /// # let executor = Context::default().create_basic_executor();
0 commit comments