1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 13:20:37 +02:00

fix doc error (#195)

This commit is contained in:
nujz
2020-09-19 22:12:41 +08:00
committed by GitHub
parent fb0aa02b3c
commit 98a2197a09
4 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ pub use actix_macros::test;
/// ```
pub struct TestServer;
/// Test server runstime
/// Test server runtime
pub struct TestServerRuntime {
addr: net::SocketAddr,
host: String,
@ -107,7 +107,7 @@ impl TestServer {
}
}
/// Get firat available unused local address
/// Get first available unused local address
pub fn unused_addr() -> net::SocketAddr {
let addr: net::SocketAddr = "127.0.0.1:0".parse().unwrap();
let socket =