aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorAndyGauge <[email protected]>2017-11-04 12:24:24 -0700
committerAndyGauge <[email protected]>2017-11-04 12:24:24 -0700
commit829c805543b8ef4400857b57a99a9405723f6367 (patch)
tree7e5b918508ea522ce90af2c7aeaf881bbdd2f0b5 /openssl/src
parentError documentation improvement (diff)
downloadrust-openssl-829c805543b8ef4400857b57a99a9405723f6367.tar.xz
rust-openssl-829c805543b8ef4400857b57a99a9405723f6367.zip
fixed broken example and syntax error in module level documentation
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/error.rs b/openssl/src/error.rs
index e565c272..5f3e2170 100644
--- a/openssl/src/error.rs
+++ b/openssl/src/error.rs
@@ -1,7 +1,7 @@
//! Errors returned by OpenSSL library.
//!
//! OpenSSL errors are stored in an `ErrorStack`. Most methods in the crate
-/// returns a `Result<T, ErrorStack>` type.
+//! returns a `Result<T, ErrorStack>` type.
//!
//! # Examples
//!
@@ -11,7 +11,7 @@
//!
//! let an_error = BigNum::from_dec_str("Cannot parse letters");
//! match an_error {
-//! Ok(_) => _,
+//! Ok(_) => (),
//! Err(e) => println!("Parsing Error: {:?}", e),
//! }
//! ```