Skip to content

Commit

Permalink
docs: fixes some docs typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Leadbetter committed May 8, 2024
1 parent 723c565 commit 9d5d502
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/buffer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Generic backing buffers for messages wrapper types.
//!
//!
//! All messages in midi2 are backed by a generic buffer type.
//!
//! A buffer can be any data type which returns a slice of `u32` or `u8`.
Expand All @@ -10,8 +10,8 @@
//! * `[U; SIZE] where U: Unit`
//! * `Vec<U> where U: Unit` (with the `std` feature enabled)
//!
//! The api of the message wrapper changes depending on the traits of the
//! backing buffer.
//! The api of the message wrapper changes depending on the traits of the
//! backing buffer.
//!
//! For example `&[U]` implements [Buffer]
//! but doesn't implement [BufferMut] so messages
Expand All @@ -29,7 +29,7 @@
//! assert_eq!(message.note(), u7::default());
//!
//! // error[E0277]: the trait bound `&[u32]: BufferMut` is not satisfied
//! message.set_note(u7::new(0x60));
//! message.set_note(u7::new(0x60));
//! ```
//!
//! `[U: SIZE]` buffers implement [BufferMut], but only
Expand All @@ -44,7 +44,7 @@
//! assert_eq!(message.try_set_payload(0..20), Ok(()));
//! ```
//! `Vec<U>` implements [BufferMut] and [BufferResize].
//! Messages backed with with such buffers have the most powerfull api.
//! Messages backed with with such buffers have the most powerful api.
//!
//! ```rust
//! use midi2::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion src/sysex7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ assert_eq!(
],
);

// Borrowed messages are immutable and their liftimes are
// Borrowed messages are immutable and their lifetimes are
// tied to the original buffer.
//
// To create an owned version use the `Rebuffer` traits.
Expand Down

0 comments on commit 9d5d502

Please sign in to comment.