Skip to content

Commit df91db1

Browse files
tiifRalfJung
andauthored
Apply comment suggestion
Co-authored-by: Ralf Jung <[email protected]>
1 parent 24628cf commit df91db1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/pass-dep/libc/libc-mem.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ fn test_memalign() {
190190
let align = 64;
191191
let size = 0;
192192
assert_eq!(libc::posix_memalign(&mut ptr, align, size), 0);
193-
// Non-null pointer is returned if size == 0
193+
// Non-null pointer is returned if size == 0.
194+
// (This is not a guarantee, it just reflects our current behavior.)
194195
assert!(!ptr.is_null());
195196
assert!(ptr.is_aligned_to(align));
196197
libc::free(ptr);

0 commit comments

Comments
 (0)