aboutsummaryrefslogtreecommitdiff
path: root/src/device/mod.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-22 00:05:53 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-22 00:05:53 +0200
commit6a94c70a2224212e2310927aec7b512d562ee455 (patch)
tree6d205fbee84f2786abb00c1da5c7b2549e39f260 /src/device/mod.rs
parent5df790a77a8c81b58e7507e8da5d9ac4975a64f8 (diff)
downloadnitrokey-rs-6a94c70a2224212e2310927aec7b512d562ee455.tar.gz
nitrokey-rs-6a94c70a2224212e2310927aec7b512d562ee455.tar.bz2
Rename *lock fields of the Config structnext
libnitrokey calls the configuration fields that set bindings for the Num Lock, Caps Lock and Scroll Lock keys numlock, capslock, scrolllock. Due to a typo, scrolllock with three l was renamed to scrollock with two l in nitrokey-rs. To make the field names easier to read (and type) and consistent with the typical names for these keys, this patch changes them to num_lock, caps_lock and scroll_lock. In the doc comments, we now use the spelling “Num Lock”, “Caps Lock” and “Scroll Lock”.
Diffstat (limited to 'src/device/mod.rs')
-rw-r--r--src/device/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/mod.rs b/src/device/mod.rs
index fbf336d..7fec18b 100644
--- a/src/device/mod.rs
+++ b/src/device/mod.rs
@@ -464,9 +464,9 @@ pub trait Device<'a>: Authenticate<'a> + GetPasswordSafe<'a> + GenerateOtp + fmt
/// let mut manager = nitrokey::take()?;
/// let device = manager.connect()?;
/// let config = device.get_config()?;
- /// println!("numlock binding: {:?}", config.numlock);
- /// println!("capslock binding: {:?}", config.capslock);
- /// println!("scrollock binding: {:?}", config.scrollock);
+ /// println!("Num Lock binding: {:?}", config.num_lock);
+ /// println!("Caps Lock binding: {:?}", config.caps_lock);
+ /// println!("Scroll Lock binding: {:?}", config.scroll_lock);
/// println!("require password for OTP: {:?}", config.user_password);
/// # Ok(())
/// # }