Skip to content

Commit

Permalink
fix string_array_check
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Sep 12, 2024
1 parent b7335e4 commit 10b7b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ pub extern "C" fn z_internal_string_array_null(this_: &mut MaybeUninit<z_owned_s
/// @return ``true`` if the string array is valid, ``false`` if it is in a gravestone state.
#[no_mangle]
pub extern "C" fn z_internal_string_array_check(this_: &z_owned_string_array_t) -> bool {
this_.as_rust_type_ref().is_empty()
!this_.as_rust_type_ref().is_empty()
}

/// Destroys the string array, resetting it to its gravestone value.
Expand Down

0 comments on commit 10b7b55

Please sign in to comment.