diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/device.rs | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/src/device.rs b/src/device.rs index 86dcc58..1455a57 100644 --- a/src/device.rs +++ b/src/device.rs @@ -571,12 +571,12 @@ impl Pro {      /// # Example      ///      /// ``` -    /// use nitrokey::DeviceWrapper; +    /// use nitrokey::Pro;      ///      /// fn use_pro(device: Pro) {}      /// -    /// match nitrokey::connect() { -    ///     Ok(device) => do_something(device), +    /// match nitrokey::Pro::connect() { +    ///     Ok(device) => use_pro(device),      ///     Err(err) => println!("Could not connect to the Nitrokey Pro: {}", err),      /// }      /// ``` @@ -607,13 +607,13 @@ impl Storage {      /// # Example      ///      /// ``` -    /// use nitrokey::DeviceWrapper; +    /// use nitrokey::Storage;      ///      /// fn use_storage(device: Storage) {}      /// -    /// match nitrokey::connect() { -    ///     Ok(device) => do_something(device), -    ///     Err(err) => println!("Could not connect to the Nitrokey Pro: {}", err), +    /// match nitrokey::Storage::connect() { +    ///     Ok(device) => use_storage(device), +    ///     Err(err) => println!("Could not connect to the Nitrokey Storage: {}", err),      /// }      /// ```      pub fn connect() -> Result<Storage, CommandError> {  | 
