summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sys/aio.rs6
-rw-r--r--src/unistd.rs3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/sys/aio.rs b/src/sys/aio.rs
index a03caa45..fee9c51d 100644
--- a/src/sys/aio.rs
+++ b/src/sys/aio.rs
@@ -379,7 +379,7 @@ impl<'a> AioCb<'a> {
}
}
- /// Like [`from_mut_slice`], but works on constant slices rather than
+ /// Like [`AioCb::from_mut_slice`], but works on constant slices rather than
/// mutable slices.
///
/// An `AioCb` created this way cannot be used with `read`, and its
@@ -1102,8 +1102,8 @@ impl<'a> LioCbBuilder<'a> {
///
/// Afterwards it will be possible to issue the operations with
/// [`LioCb::listio`]. Conversely, it will no longer be possible to add new
- /// operations with [`LioCb::emplace_slice`] or
- /// [`LioCb::emplace_mut_slice`].
+ /// operations with [`LioCbBuilder::emplace_slice`] or
+ /// [`LioCbBuilder::emplace_mut_slice`].
///
/// [`LioCb::listio`]: struct.LioCb.html#method.listio
/// [`LioCb::from_mut_slice`]: struct.LioCb.html#method.from_mut_slice
diff --git a/src/unistd.rs b/src/unistd.rs
index d406efe8..ed3b753a 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -1670,10 +1670,11 @@ pub mod alarm {
//! sigaction(Signal::SIGALRM, &sa);
//! }
//!
+ //! let start = Instant::now();
+ //!
//! // Set an alarm for 1 second from now.
//! alarm::set(1);
//!
- //! let start = Instant::now();
//! // Pause the process until the alarm signal is received.
//! let mut sigset = SigSet::empty();
//! sigset.add(Signal::SIGALRM);