From 86efbfceebd80084d8ee79e7ce43e44f9105e674 Mon Sep 17 00:00:00 2001 From: Maggie Moss Date: Thu, 8 May 2025 15:39:27 -0700 Subject: [PATCH] Update README.md to include example of overriding defaults This was a feature we were looking for, and were able to use by looking at `src/ini.rs`. Having a quick example on the page would have helped us --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 86894eb..fb2810e 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,16 @@ You can activate it by adding it as a feature like this: configparser = { version = "3.2.0", features = ["tokio"] } ``` +## Override Defaults + +You can change the default configuration options like this. See the API for more verbose documentation. + +``` +let mut default = IniDefault::default(); +default.multiline = true; +let mut config = Ini::new_from_defaults(default); +``` + ## 📜 License Licensed under either of