Skip to content

Commit 05218ba

Browse files
committed
Fix comment format
1 parent 877492b commit 05218ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/shims/unix/linux/eventfd.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,18 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
168168
// Unset the flag that we support.
169169
// After unloading, flags != 0 means other flags are used.
170170
if flags & efd_cloexec == efd_cloexec {
171-
// cloexec is ignored because Miri does not suport exec.
171+
// cloexec is ignored because Miri does not support exec.
172172
flags &= !efd_cloexec;
173173
}
174174
if flags & efd_nonblock == efd_nonblock {
175175
flags &= !efd_nonblock;
176176
is_nonblock = true;
177177
}
178178
if flags != 0 {
179-
throw_unsup_format!("eventfd: Flags other than EFD_CLOEXEC, EFD_NONBLOCK \
180-
and EFD_SEMAPHORE is not supported.");
179+
throw_unsup_format!(
180+
"eventfd: Flags other than EFD_CLOEXEC, EFD_NONBLOCK \
181+
and EFD_SEMAPHORE is not supported."
182+
);
181183
}
182184

183185
let fd = this.machine.fds.insert_fd(FileDescriptor::new(Event {

0 commit comments

Comments
 (0)