Skip to content

Commit

Permalink
chore: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed Jul 28, 2024
1 parent edc2309 commit fc13e1c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Why is this needed? Since this is a system daemon it needs to be installed
system-wide and run as root (to be able to access certain files in `/dev`
and `/sys`).

Thus you should ideally install this with your distro package manager. A
Thus, you should ideally install this with your distro package manager. A
package for Arch Linux is available on [AUR] (maintained by the author of
this package).

Expand Down Expand Up @@ -201,7 +201,7 @@ to the daemon. But consider giving it a try first, you might grow to like it.

## Minimum supported rust version (MSRV)

Currently at least Rust 1.74.0 is needed, but this may change at any time
Currently, at least Rust 1.74.0 is needed, but this may change at any time
if needed. MSRV change is not considered a breaking change and as such may
change even in a patch version.

Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Supported Versions

Only the latest release & the tip of main is supported in any way whatsover.
Only the latest release & the tip of main is supported in any way whatsoever.
As a single hobbyist doing this on my free time, I do not have the ability to
deal with stable branches.

## Reporting a Vulnerability

Go [here](https://github.com/VorpalBlade/keyboard-backlightd/security/advisories) to
see advisories and report vulnrabilities privately.
see advisories and report vulnerabilities privately.

Please remember that this is a single-person hobbist project made primarily for the
author's own needs, so everything is done on a best effort basis.
Please remember that this is a single-person hobbyist project made primarily for the
author's own needs, so everything is done on a best-effort basis.
4 changes: 2 additions & 2 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ mod ev_dev {
// This case is that an input event was reported.
Ok(key) => {
match key.event_code {
// If it was was a LED: Ignore it! (Otherwise pressing
// If it was a LED: Ignore it! Otherwise, pressing
// Caps Lock on an external USB keyboard would trigger
// us to turn on the backlight on the built in keyboard.
// us to turn on the backlight on the built-in keyboard.
EventCode::EV_LED(_) => Ok(()),
// Similarly ignore SYN_REPORT, as these happen after
// each EV_LED (and in many other places too).
Expand Down
2 changes: 1 addition & 1 deletion src/led.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn monitor_path(mut led_path: PathBuf) -> anyhow::Result<Option<PathBuf>> {

#[derive(Debug)]
pub(crate) struct Led {
/// Path to LED (sub-directory in `/sys/class/leds`)
/// Path to LED (subdirectory in `/sys/class/leds`)
path: PathBuf,
/// File handle for brightness control file
brightness_file: File,
Expand Down
2 changes: 1 addition & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub(crate) fn monitor(
for (idx, listener) in listeners.iter().enumerate() {
match listener.monitored() {
crate::handlers::ListenType::Fd(ref fd) => {
// TRICKY BIT: Data = 0 is used to indicate nothing happend.
// TRICKY BIT: Data = 0 is used to indicate nothing happened.
// We thus offset the array index into listeners by one.
epoll.add(
fd,
Expand Down

0 comments on commit fc13e1c

Please sign in to comment.