Skip to content

Commit 2b42cd3

Browse files
committed
Add the simple builder as the default example
1 parent bdf75f0 commit 2b42cd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The initial `?` question mark is automatically prepended.
1313
use query_string_builder::QueryString;
1414

1515
fn main() {
16-
let qs = QueryString::new()
16+
let qs = QueryString::simple()
1717
.with_value("q", "apple")
1818
.with_value("tasty", true)
1919
.with_value("weight", 70.0)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! ```
99
//! use query_string_builder::QueryString;
1010
//!
11-
//! let qs = QueryString::dynamic()
11+
//! let qs = QueryString::simple()
1212
//! .with_value("q", "🍎 apple")
1313
//! .with_value("tasty", true)
1414
//! .with_opt_value("color", None::<String>)

0 commit comments

Comments
 (0)