From 2e426e513360bfc7ef89263f37c8b602983348a5 Mon Sep 17 00:00:00 2001 From: XxChang Date: Tue, 9 Jul 2024 09:20:37 +0800 Subject: [PATCH] add safety --- apis/c/node/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/c/node/src/lib.rs b/apis/c/node/src/lib.rs index b78ff416..9d8762b0 100644 --- a/apis/c/node/src/lib.rs +++ b/apis/c/node/src/lib.rs @@ -117,13 +117,13 @@ pub enum EventType { /// /// ## Safety /// -/// The `event` argument must be a dora event received through +/// - The `event` argument must be a dora event received through /// [`dora_next_event`]. The event must be still valid, i.e., not /// freed yet. The returned `out_ptr` must not be used after /// freeing the `event`, since it points directly into the event's /// memory. /// -/// Note: `Out_ptr` is not a null-terminated string. The length of the string +/// - Note: `Out_ptr` is not a null-terminated string. The length of the string /// is given by `out_len`. #[no_mangle] pub unsafe extern "C" fn read_dora_input_id(