Fix doctest
Some checks failed
Rust Checks / checks (push) Failing after 19s
Rust Checks / checks (pull_request) Failing after 18s

This commit is contained in:
Tipragot 2024-02-07 17:50:20 +01:00
parent ddf5b38905
commit 33dd130e1c

View file

@ -20,9 +20,8 @@ use local_ip_address::local_ip;
/// use bevnet::{Connection, Listener};
///
/// # fn main() -> io::Result<()> {
/// let secret_key = Connection::generate_key();
/// let listener = Listener::bind("127.0.0.1:23732", &secret_key)?;
/// let mut connection = Connection::connect("127.0.0.1:23732", &secret_key)?;
/// let listener = Listener::new()?;
/// let mut connection = Connection::connect(&listener.connection_string())?;
///
/// // The accept operation is not blocking. So we need to loop here.
/// let mut server_connection;
@ -313,9 +312,8 @@ impl Connection {
/// use bevnet::{Connection, Listener};
///
/// # fn main() -> io::Result<()> {
/// let secret_key = Connection::generate_key();
/// let listener = Listener::new(&secret_key)?;
/// let mut connection = Connection::connect(listener.connection_string())?;
/// let listener = Listener::new()?;
/// let mut connection = Connection::connect(&listener.connection_string())?;
///
/// // The accept operation is not blocking. So we need to loop here.
/// let mut server_connection;