Fixes to readme

This commit is contained in:
Tim Kuehn
2016-11-05 16:47:46 -07:00
parent d47a931f9f
commit c437d66603
3 changed files with 4 additions and 4 deletions

View File

@@ -69,9 +69,9 @@ impl SyncService for HelloServer {
fn main() {
let addr = "localhost:10000";
let _server = HelloServer.listen(addr);
HelloServer.listen(addr).unwrap();
let client = SyncClient::connect(addr).unwrap();
println!("{}", client.hello(&"Mom".to_string()).unwrap());
println!("{}", client.hello("Mom".to_string()).unwrap());
}
```

View File

@@ -28,7 +28,7 @@ impl SyncService for HelloServer {
fn main() {
let addr = "localhost:10000";
let _server = HelloServer.listen(addr);
HelloServer.listen(addr).unwrap();
let client = SyncClient::connect(addr).unwrap();
println!("{}", client.hello("Mom".to_string()).unwrap());
}

View File

@@ -50,7 +50,7 @@ impl SyncService for HelloServer {
fn main() {
let addr = "localhost:10000";
let _server = HelloServer.listen(addr);
HelloServer.listen(addr).unwrap();
let client = SyncClient::connect(addr).unwrap();
println!("{}", client.hello("Mom".to_string()).unwrap());
println!("{}", client.hello("".to_string()).unwrap_err());