summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvallentin <vallentinsource@gmail.com>2020-02-07 06:37:19 +0100
committerWez Furlong <wez@wezfurlong.org>2020-02-07 08:22:57 -0800
commit6d956ba46ebbba5726cc59da588328b17d0dd062 (patch)
tree3f6c97c670d6ad8a8084a6ef7a599d8840062be4
parent747bbf07a5c2515ed2f828ba75227ed2272fab76 (diff)
downloadssh2-rs-6d956ba46ebbba5726cc59da588328b17d0dd062.zip
Fixed misspelling
-rw-r--r--src/session.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.rs b/src/session.rs
index 21a137b..25aebc9 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -869,14 +869,14 @@ impl Session {
/// successfully, this function can be used to get the server id from the
/// banner each server presents.
///
- /// May return `None` on invalid utf-8 or if an error has ocurred.
+ /// May return `None` on invalid utf-8 or if an error has occurred.
pub fn banner(&self) -> Option<&str> {
self.banner_bytes().and_then(|s| str::from_utf8(s).ok())
}
/// See `banner`.
///
- /// Will only return `None` if an error has ocurred.
+ /// Will only return `None` if an error has occurred.
pub fn banner_bytes(&self) -> Option<&[u8]> {
let inner = self.inner();
unsafe { ::opt_bytes(self, raw::libssh2_session_banner_get(inner.raw)) }