Skip to content

Commit 5432ac0

Browse files
jayvdbshenek
authored andcommitted
fix: spelling
1 parent 52e822c commit 5432ac0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static DOMAIN_REGEX: &str =
3636
/// ```
3737
#[derive(Debug, PartialEq, Clone)]
3838
pub enum ToCheck {
39-
/// Hostname or IP addess e.g. `127.0.0.1:8080` or `localhost:80`
39+
/// Hostname or IP address e.g. `127.0.0.1:8080` or `localhost:80`
4040
HostnameAndPort(String, u16),
4141

4242
#[cfg(feature = "http")]
@@ -131,7 +131,7 @@ impl std::str::FromStr for ToCheck {
131131
/// * `hosts_ports_or_http_urls` - items to be check
132132
/// * `timeout` - `None` means that it it may wait forever or `Some(..)` set timeout in milis
133133
/// * `start_time` - Optional time_tracker
134-
/// * `silent` - supresses output to console if true
134+
/// * `silent` - suppresses output to console if true
135135
///
136136
/// # Returns
137137
/// `Vec` with `Option` - `Some(..)` with elapsed time in milis on success `None` otherwise.

tests/common.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ use std::{
1111
};
1212

1313
pub struct TestServer {
14-
exitting: Arc<AtomicBool>,
14+
exiting: Arc<AtomicBool>,
1515
}
1616

1717
impl TestServer {
1818
pub fn new(port: u16, timeout: Duration) -> Self {
19-
let exitting = Arc::new(AtomicBool::new(false));
20-
let exitting_cloned = exitting.clone();
19+
let exiting = Arc::new(AtomicBool::new(false));
20+
let exiting_cloned = exiting.clone();
2121
thread::spawn(move || {
22-
let exitting = exitting_cloned;
22+
let exiting = exiting_cloned;
2323
thread::sleep(timeout);
2424
let listener = TcpListener::bind(format!("127.0.0.1:{}", port)).expect("can't connect");
2525
listener
@@ -47,17 +47,17 @@ OK
4747
}
4848
Err(_) => {}
4949
}
50-
if exitting.as_ref().load(Ordering::Relaxed) {
50+
if exiting.as_ref().load(Ordering::Relaxed) {
5151
break;
5252
}
5353
}
5454
});
55-
Self { exitting }
55+
Self { exiting }
5656
}
5757
}
5858

5959
impl Drop for TestServer {
6060
fn drop(&mut self) {
61-
self.exitting.store(true, Ordering::Relaxed);
61+
self.exiting.store(true, Ordering::Relaxed);
6262
}
6363
}

0 commit comments

Comments
 (0)