Merge pull request #58 from tikue/framed

Fixes to readme
This commit is contained in:
Adam Wright
2016-11-05 17:14:06 -07:00
committed by GitHub
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());