diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2023-03-07 09:31:28 +0100 |
---|---|---|
committer | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2023-03-07 09:31:28 +0100 |
commit | c4db06af3e2dee883f310a21ec9c528da0b755d2 (patch) | |
tree | d3e813ddc563bbe53aa0a28d2273aba74842922b /src | |
parent | 1646921b679d812f3932ac6587b75caddd7e8ccd (diff) |
[doc] Add missing use directive in doc strings
Diffstat (limited to 'src')
-rw-r--r-- | src/client/connection.rs | 1 | ||||
-rw-r--r-- | src/server.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/connection.rs b/src/client/connection.rs index 05ab185..4328d73 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -116,6 +116,7 @@ impl ConnectionConfiguration { /// /// Connect to an IPv4 server hosted on localhost (127.0.0.1), which is listening on port 6000. Use 0 as a local bind port to let the OS assign a port. /// ``` + /// use std::net::{IpAddr, Ipv4Addr}; /// use bevy_quinnet::client::connection::ConnectionConfiguration; /// let config = ConnectionConfiguration::from_ips( /// IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), diff --git a/src/server.rs b/src/server.rs index ae3bd82..f099f26 100644 --- a/src/server.rs +++ b/src/server.rs @@ -93,6 +93,7 @@ impl ServerConfiguration { /// /// Listen on port 6000, on an IPv4 endpoint, for all incoming IPs. /// ``` + /// use std::net::{IpAddr, Ipv4Addr}; /// use bevy_quinnet::server::ServerConfiguration; /// let config = ServerConfiguration::from_ip(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 6000); /// ``` |