Skip to content

Commit faab284

Browse files
committed
Fix doc test
1 parent e905011 commit faab284

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ impl Responder {
5858
pub fn new() -> Responder {
5959
Self::new_with_ip_list(Vec::new()).unwrap()
6060
}
61+
6162
/// Spawn a `Responder` task on an new os thread.
6263
/// DNS response records will have the reported IPs limited to those passed in here.
6364
/// This can be particularly useful on machines with lots of networks created by tools such as
@@ -309,7 +310,7 @@ impl Responder {
309310
///
310311
/// # use std::io;
311312
/// # fn main() -> io::Result<()> {
312-
/// let responder = Responder::new()?;
313+
/// let responder = Responder::new();
313314
/// // bind service
314315
/// let _http_svc = responder.register_with_ttl(
315316
/// "_http._tcp".into(),

0 commit comments

Comments
 (0)