Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #396

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boringtun/src/device/dev_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl<'a, T: ?Sized> LockReadGuard<'a, T> {
/// this can be used to tell other threads to yield their read locks temporarily. It will be passed
/// an immutable reference to the inner value.
///
/// `mut_func` - A closure that will run once write access is gained. It iwll be passed a mutable reference
/// `mut_func` - A closure that will run once write access is gained. It will be passed a mutable reference
/// to the inner value.
///
pub fn try_writeable<U, P: FnOnce(&T), F: FnOnce(&mut T) -> U>(
Expand Down
2 changes: 1 addition & 1 deletion boringtun/src/device/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<H: Sync + Send> EventPoll<H> {

/// Add and enable a new write event with the factory.
/// The event is triggered when a Write operation on the provided trigger becomes possible
/// For TCP sockets it means that the socket was succesfully connected
/// For TCP sockets it means that the socket was successfully connected
#[allow(dead_code)]
pub fn new_write_event(&self, trigger: RawFd, handler: H) -> Result<EventRef, Error> {
// Create an event descriptor
Expand Down