Skip to content

Commit f74cc17

Browse files
committed
Put SAFETY comment back in the right place
1 parent c555e4c commit f74cc17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ mod tests {
222222
i32::try_from(original_bytes.len() - 1).unwrap()
223223
}
224224

225-
// SAFETY: snprintf closure is indeed an snprintf-like function
226225
assert!(
226+
// SAFETY: snprintf closure is indeed an snprintf-like function
227227
unsafe { call_snprintf(|buf, len| snprintf(buf, len)) }
228228
.iter()
229229
.copied()

0 commit comments

Comments
 (0)