Skip to content

Commit

Permalink
Merge pull request #50 from NickLarsenNZ/fix-example
Browse files Browse the repository at this point in the history
Fix the string value example
  • Loading branch information
johalun authored Apr 4, 2022
2 parents 45e1818 + c07bfaa commit 3428320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! // On Linux all sysctls are String type. Use the following for
//! // cross-platform compatibility:
//! let str_val = ctl.value_string().unwrap();
//! println!("String value: {}", val);
//! println!("String value: {}", str_val);
//! ```
//!
//! # Example: Get value as struct
Expand Down

0 comments on commit 3428320

Please sign in to comment.