Skip to content

Commit

Permalink
Fix README.md examples (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnallen3d authored Dec 9, 2023
1 parent 6d4a7f5 commit 07b289a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use postal::{Context, InitOptions, ExpandAddressOptions};
let mut ctx = Context::new();

// enable address expansion for this context
ctx.init(InitOptions{expand_address: true}).unwrap();
ctx.init(InitOptions{expand_address: true, parse_address: false}).unwrap();

// these options are safe to persist and reuse between calls to `expand_address`
let mut opts = ExpandAddressOptions::new();
Expand All @@ -66,7 +66,7 @@ use postal::{Context, InitOptions, ParseAddressOptions};
let mut ctx = Context::new();

// enable address parsing for this context
ctx.init(InitOptions{parse_address: true}).unwrap();
ctx.init(InitOptions{expand_address: false, parse_address: true}).unwrap();

// these options are safe to persist and reuse between calls to `parse_address`.
// Note: `language` and `country` are technically options that libpostal will accept
Expand Down

0 comments on commit 07b289a

Please sign in to comment.