Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API失敗時のテストコード: READMEのサンプルコードを修正 #121

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ cargo add japanese-address-parser
### Async Api

```rust
use japanese_address_parser::api::client::ApiImpl;
use japanese_address_parser::api::{Api, ApiImpl};
use japanese_address_parser::parser::parse;

#[tokio::main]
async fn main() {
let async_api = ApiImpl {};
let async_api = ApiImpl::new();
let parse_result = parse(async_api, "東京都千代田区丸の内1-1-1").await;
println!("{:?}", parse_result);
}
Expand All @@ -32,11 +32,11 @@ async fn main() {
### Blocking Api

```rust
use japanese_address_parser::api::blocking::Client;
use japanese_address_parser::api::{BlockingApi, BlockingApiImpl};
use japanese_address_parser::parser::parse_blocking;

fn main() {
let blocking_api = Client {};
let blocking_api = BlockingApiImpl::new();
let parse_result = parse_blocking(blocking_api, "東京都千代田区丸の内1-1-1");
println!("{:?}", parse_result);
}
Expand Down
Loading