FGRibreau / querystring

🦄 Querystring for Rust
https://twitter.com/FGRibreau
6 stars 2 forks source link

Reason for Trailing Ampersand? #2

Open naftulikay opened 4 years ago

naftulikay commented 4 years ago

When I run the following code:

println!("{}", querystring::stringify(vec![("foo", "bar")]));

I see the following output:

foo=bar&

Why is there a trailing ampersand? Is this following the rules of an RFC I'm not familiar with?

FGRibreau commented 2 years ago

It's a side effect currently, we can fix yeah :) I will accept a PR with updated tests for it :+1: