nzx9/rust-gecko

Joining more than two items returns invalid output

Opened this issue · 0 comments

nzx9 commented
let mut params = ["?vs_currency", vs_currency, "&days", days].join("=");  

// test
["?vs_currency", 'usd', "&days", 1].join("=");
// output: ?vs_currency=usd=&days=1
// this should be  ?vs_currency=usd&days=1

Joining more than two items returns invalid output