Skip to content

Commit f010518

Browse files
committed
Update comment on field check
1 parent 284a8e7 commit f010518

File tree

1 file changed

+1
-2
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-2
lines changed

Diff for: library/std/src/sys/pal/unix/fs.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -746,8 +746,7 @@ impl Iterator for ReadDir {
746746
// being referenced.
747747
macro_rules! entry_field_ptr {
748748
($field:ident) => {{
749-
// To make sure the field actually exists and is visible,
750-
// and we aren't silently doing any Deref coercion.
749+
// To make sure we aren't silently doing any Deref coercion.
751750
const _: usize = mem::offset_of!(dirent64, $field);
752751
&raw const (*entry_ptr).$field
753752
}};

0 commit comments

Comments
 (0)