diff --git a/src/app/searchprovider.rs b/src/app/searchprovider.rs index 4603700..a0a0da6 100644 --- a/src/app/searchprovider.rs +++ b/src/app/searchprovider.rs @@ -174,7 +174,7 @@ async fn dispatch_method_call( /// Register the Turn On search provider for `app`. /// -/// Register a search provider for devices on the DBus connection of `app`. +/// Register a search provider for devices on the D-Bus connection of `app`. /// The search provider exposes devices from the `app` model to GNOME Shell, /// and allows to turn on devices directly from the shell overview. pub fn register_app_search_provider(app: &TurnOnApplication) -> Option { diff --git a/src/dbus.rs b/src/dbus.rs index 8cc7cd5..0d1c700 100644 --- a/src/dbus.rs +++ b/src/dbus.rs @@ -4,6 +4,6 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -//! DBus interface definitions and helpers. +//! D-Bus interface definitions and helpers. pub mod searchprovider2; diff --git a/src/dbus/searchprovider2.rs b/src/dbus/searchprovider2.rs index 7acaa82..36e99b5 100644 --- a/src/dbus/searchprovider2.rs +++ b/src/dbus/searchprovider2.rs @@ -18,7 +18,7 @@ static XML: &str = include_str!("../../dbus-1/org.gnome.ShellSearchProvider2.xml /// The name of the interface. pub static INTERFACE_NAME: &str = "org.gnome.Shell.SearchProvider2"; -/// Get the DBus interface info for the search provider interface. +/// Get the D-Bus interface info for the search provider interface. pub fn interface() -> DBusInterfaceInfo { // We unwrap here since we know that the XML is valid and contains the // desired interface, so none of this can realistically fail. diff --git a/src/net.rs b/src/net.rs index 194a137..787aff2 100644 --- a/src/net.rs +++ b/src/net.rs @@ -4,10 +4,10 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -//! Networking for TurnOn. +//! Networking for Turn On. //! -//! This module provides various utilities around networking required by TurnOn. -//! Specifically, it has a user-space ping implementation, a WakeOnLan +//! This module provides various utilities around networking required by Turn On. +//! Specifically, it has a user-space ping implementation, a Wake-On-Lan //! implementation, some helper types, and various tools for network scanning. pub mod arpcache; diff --git a/src/net/arpcache.rs b/src/net/arpcache.rs index fb4bf6c..9ba50fe 100644 --- a/src/net/arpcache.rs +++ b/src/net/arpcache.rs @@ -24,7 +24,7 @@ use macaddr::MacAddr6; /// for known hardware types as of Linux 6.12. /// /// We do not represent all hardware types, but only those we're interested in -/// with regards to TurnOn. +/// with regards to Turn On. #[derive(Debug, PartialEq, Eq)] #[repr(u16)] pub enum ArpKnownHardwareType { diff --git a/src/net/macaddr.rs b/src/net/macaddr.rs index 787f621..c714af0 100644 --- a/src/net/macaddr.rs +++ b/src/net/macaddr.rs @@ -7,7 +7,7 @@ //! Simple MAC address type on top of [`glib::Bytes`]. //! //! While this is not the most efficient approach it allows storing the MAC -//! address as a GLib property. +//! address as a glib property. use std::fmt::Display; use std::ops::Deref; @@ -17,7 +17,7 @@ use macaddr::MacAddr6; /// Boxed [`MacAddr6`]. /// -/// Define a MAC address type for GLib, by boxing a [`MacAdd6`]. +/// Define a MAC address type for glib, by boxing a [`MacAdd6`]. #[derive(Default, Debug, Copy, Clone, Eq, PartialEq, PartialOrd, Ord, glib::Boxed)] #[boxed_type(name = "MacAdd6")] pub struct MacAddr6Boxed(MacAddr6); diff --git a/src/net/wol.rs b/src/net/wol.rs index b715962..d32379c 100644 --- a/src/net/wol.rs +++ b/src/net/wol.rs @@ -26,7 +26,7 @@ fn write_magic_packet(sink: &mut W, mac_address: MacAddr6) -> std::io: /// Send a magic Wake On LAN packet to the given `mac_address`. /// -/// Sends the WoL package as UDP package to port 9 on the IPv4 broadcast address. +/// Sends the magic package as UDP package to port 9 on the IPv4 broadcast address. pub async fn wol(mac_address: MacAddr6) -> Result<(), glib::Error> { let socket = gio::Socket::new( gio::SocketFamily::Ipv4,