Skip to content

Commit d7412b6

Browse files
committed
Add another ToString example to README
1 parent 2047161 commit d7412b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ fn main() {
1616
let qs = QueryString::new()
1717
.with_value("q", "apple")
1818
.with_value("tasty", true)
19+
.with_value("weight", 70.0)
1920
.with_opt_value("color", None::<String>)
2021
.with_opt_value("category", Some("fruits and vegetables?"));
2122

2223
assert_eq!(
2324
format!("https://example.com/{qs}"),
24-
"https://example.com/?q=apple&tasty=true&category=fruits%20and%20vegetables?&tasty=true"
25+
"https://example.com/?q=apple&tasty=true&weight=70.0&category=fruits%20and%20vegetables?&tasty=true"
2526
);
2627
}
2728
```

0 commit comments

Comments
 (0)