Skip to content

Commit

Permalink
Correct some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bold authored and withoutboats committed Sep 18, 2020
1 parent d6c8194 commit 3557ab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cancellation.rs
Expand Up @@ -14,7 +14,7 @@ pub struct Cancellation {

impl Cancellation {
/// Construct a new cancellation callback to hold resources until the event concludes. The
/// `drop` argument will be called recieve the `data` and `metadata` fields when the
/// `drop` argument will be called receive the `data` and `metadata` fields when the
/// cancellation is dropped.
///
/// ## Safety
Expand Down
6 changes: 3 additions & 3 deletions src/drive/mod.rs
Expand Up @@ -11,7 +11,7 @@ use crate::completion;

pub use crate::completion::complete;

/// A ccompletion which will be used to wake the task waiting on this event.
/// A completion which will be used to wake the task waiting on this event.
///
/// This type is opaque to users of ringbahn. It is constructed by the callback passed to
/// [Drive::poll_prepare].
Expand All @@ -35,11 +35,11 @@ pub trait Drive {
/// Prepare an event on the submission queue.
///
/// The implementer is responsible for provisioning an [`iou::SubmissionQueueEvent`] from the
/// submission queue. Once an SQE is available, the implementer should pass it to the
/// submission queue. Once an SQE is available, the implementer should pass it to the
/// `prepare` callback, which constructs a [`Completion`], and return that `Completion` to the
/// caller.
///
/// If the driver is not ready to recieve more events, it can return `Poll::Pending`. If it
/// If the driver is not ready to receive more events, it can return `Poll::Pending`. If it
/// does, it must register a waker to wake the task when more events can be prepared, otherwise
/// this method will not be called again. This allows the driver to implement backpressure.
///
Expand Down
2 changes: 1 addition & 1 deletion src/ring.rs
Expand Up @@ -16,7 +16,7 @@ use State::*;
///
/// Ring is a state machine similar to `Submission`, but it is designed to cycle through multiple
/// IO events submitted to io-uring, rather than representing a single submission. Because of this,
/// it is more low level, but it is suitable fro building an IO object like a `File` on top of
/// it is more low level, but it is suitable for building an IO object like a `File` on top of
/// io-uring.
///
/// Users writing code on top of `Ring` are responsible for making sure that it is correct. For
Expand Down

0 comments on commit 3557ab2

Please sign in to comment.