From 69d1b9f5420016097e9bb7d58977c751950c95e0 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 7 Dec 2017 12:05:38 +0100 Subject: [PATCH] Fix typos --- libp2p-secio/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p-secio/src/lib.rs b/libp2p-secio/src/lib.rs index 5fb2066c..d08214f6 100644 --- a/libp2p-secio/src/lib.rs +++ b/libp2p-secio/src/lib.rs @@ -65,7 +65,7 @@ mod keys_proto; mod handshake; mod structs_proto; -/// Implementation of the `ConnectionUpgrade` trait of `libp2p_swarm`. Automatically applies any +/// Implementation of the `ConnectionUpgrade` trait of `libp2p_swarm`. Automatically applies /// secio on any connection. #[derive(Clone)] pub struct SecioConfig { @@ -91,7 +91,7 @@ pub struct SecioConfig { /// Loading the keys: /// /// ```ignore -/// ley key_pair = SecioKeyPair::rsa_from_pkcs8(include_bytes!("private.pk8"), +/// let key_pair = SecioKeyPair::rsa_from_pkcs8(include_bytes!("private.pk8"), /// include_bytes!("public.der")); /// ``` ///