From 07b289ac8cb6102dc925b6cf3e9b6ee7ab5d3dc7 Mon Sep 17 00:00:00 2001 From: John Allen Date: Sat, 9 Dec 2023 09:17:53 -0500 Subject: [PATCH] Fix README.md examples (#12) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 764588c..f62a426 100644 --- a/README.md +++ b/README.md @@ -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(); @@ -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