diff --git a/README.md b/README.md index 8c6d91a3dbeedb58403bf4e4e2f15d78d6ec1116..0ef2447ff2487785c62a0c6cc5c8239dc4d44713 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ extern crate coap; extern crate coap; use std::io; -use coap::{CoAPResponse, CoAPRequest}; +use coap::{CoAPServer, CoAPResponse, CoAPRequest}; fn request_handler(req: CoAPRequest) -> Option<CoAPResponse> { println!("Receive request: {:?}", req); @@ -47,7 +47,7 @@ fn main() { server.handle(request_handler).unwrap(); println!("Server up on {}", addr); - println!("Press any key to stop..."); + println!("Press any key to stop..."); io::stdin().read_line(&mut String::new()).unwrap(); println!("Server shutdown");