Skip to content

Commit

Permalink
fix: ParsedAddressの修正: Parser#parseのサンプルコードを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Oct 28, 2024
1 parent 383fe87 commit 89b5bce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/experimental/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ impl Parser {
/// async fn example() {
/// let parser = Parser::default();
/// let result = parser.parse("埼玉県所沢市上山口2135").await;
/// println!("{:?}", result);
/// assert_eq!(result.prefecture, "埼玉県");
/// assert_eq!(result.city, "所沢市");
/// assert_eq!(result.town, "上山口");
/// assert_eq!(result.rest, "2135");
/// assert_eq!(result.metadata.depth, 3);
/// }
/// ```
pub async fn parse(&self, address: &str) -> ParsedAddress {
Expand Down

0 comments on commit 89b5bce

Please sign in to comment.