mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
Fix typos
This commit is contained in:
@ -65,7 +65,7 @@ mod keys_proto;
|
|||||||
mod handshake;
|
mod handshake;
|
||||||
mod structs_proto;
|
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.
|
/// secio on any connection.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct SecioConfig {
|
pub struct SecioConfig {
|
||||||
@ -91,7 +91,7 @@ pub struct SecioConfig {
|
|||||||
/// Loading the keys:
|
/// Loading the keys:
|
||||||
///
|
///
|
||||||
/// ```ignore
|
/// ```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"));
|
/// include_bytes!("public.der"));
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user