From b4522ce5054f2553bf6ad3eb8a127f9618a53301 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Wed, 26 Feb 2025 11:41:19 +0100 Subject: [PATCH] doc fixes --- Cargo.toml | 2 +- build-resources/opaque-types/src/lib.rs | 2 +- include/zenoh_commons.h | 2 +- src/queryable.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 181e24fca..5bae7aa3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,7 +75,7 @@ tokio = "*" unwrap-infallible = "0.1.5" const_format = "0.2.32" zenoh = { version = "1.2.1", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main", default-features = false, features = ["internal"] } -zenoh-ext = { version = "1.2.1", git = "https://github.com/eclipse-zenoh/zenoh.git", features=["internal"], default-features = false, branch = "main" } +zenoh-ext = { version = "1.2.1", git = "https://github.com/eclipse-zenoh/zenoh.git", features=["internal"], branch = "main", default-features = false } zenoh-runtime = { version = "1.2.1", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main" } zenoh-util = { version = "1.2.1", git = "https://github.com/eclipse-zenoh/zenoh.git", branch = "main" } flume = "*" diff --git a/build-resources/opaque-types/src/lib.rs b/build-resources/opaque-types/src/lib.rs index 127e8ed78..747f3eccd 100644 --- a/build-resources/opaque-types/src/lib.rs +++ b/build-resources/opaque-types/src/lib.rs @@ -271,7 +271,7 @@ get_opaque_type_data!(Publisher<'static>, z_loaned_publisher_t); /// @brief An owned Zenoh matching listener. /// /// A listener that sends notifications when the [`MatchingStatus`] of a publisher or querier changes. -/// Dropping the corresponding publisher, also drops matching listener. +/// Dropping the corresponding publisher or a querier also drops matching listener's callback. get_opaque_type_data!(Option>, z_owned_matching_listener_t); /// An owned Zenoh subscriber . diff --git a/include/zenoh_commons.h b/include/zenoh_commons.h index 7726af95c..9057c7d78 100644 --- a/include/zenoh_commons.h +++ b/include/zenoh_commons.h @@ -2212,7 +2212,7 @@ z_result_t z_declare_querier(const struct z_loaned_session_t *session, * @param callback: The callback function that will be called each time a matching query is received. Its ownership is passed to queryable. * @param options: Options for the queryable. * - * @return 0 in case of success, negative error code otherwise (in this case ) + * @return 0 in case of success, negative error code otherwise. */ ZENOHC_API z_result_t z_declare_queryable(const struct z_loaned_session_t *session, diff --git a/src/queryable.rs b/src/queryable.rs index b423d53c6..d5ac6dc03 100644 --- a/src/queryable.rs +++ b/src/queryable.rs @@ -252,7 +252,7 @@ fn _declare_queryable_inner<'a, 'b>( /// @param callback: The callback function that will be called each time a matching query is received. Its ownership is passed to queryable. /// @param options: Options for the queryable. /// -/// @return 0 in case of success, negative error code otherwise (in this case ) +/// @return 0 in case of success, negative error code otherwise. #[no_mangle] pub extern "C" fn z_declare_queryable( session: &z_loaned_session_t,