Skip to content

Commit

Permalink
Merge pull request #3022 from peicuiping/master
Browse files Browse the repository at this point in the history
chore: fix some typos
  • Loading branch information
Pana authored Dec 31, 2024
2 parents 3217751 + 7cabff4 commit ffba844
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/network/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ impl<T> MovableWrapper<T> {
/// [ protocol_id (3 bytes)]
///
/// The extensions format is:
/// [ extention data (0 to more bytes)
/// [ extension data (0 to more bytes)
/// || extension data length (7 bit) | has_next_extension (1 bit)
/// ]
#[derive(Eq, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion crates/util/io/src/service_mio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ where Message: Send + Sync + 'static
*self.network_poll_thread.lock() = Some(thread);
}

/// Regiter an IO handler with the event loop.
/// Register an IO handler with the event loop.
pub fn register_handler(
&self, handler: Arc<dyn IoHandler<Message> + Send>,
) -> Result<(), IoError> {
Expand Down
2 changes: 1 addition & 1 deletion crates/util/malloc_size_of_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn test_struct() {
assert_eq!(
no_space.matches(&$e.replace(" ", "")).count(),
$count,
"counting occurences of {:?} in {:?} (whitespace-insensitive)",
"counting occurrences of {:?} in {:?} (whitespace-insensitive)",
$e,
expanded
)
Expand Down
2 changes: 1 addition & 1 deletion crates/util/treap-map/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait TreapNodeUpdate<C: TreapMapConfig> {
/// The core update logic for a node.
///
/// We pass `Option<&mut Box<_>>` instead of `&mut Option<Box<_>>` here
/// intensionally. This approach restricts the function from directly
/// intentionally. This approach restricts the function from directly
/// inserting or removing nodes. Instead, the function should
/// communicates any attempts to add or remove nodes through
/// the `UpdateResult`.
Expand Down

0 comments on commit ffba844

Please sign in to comment.