]> git.lizzy.rs Git - istanco_ddns.git/commitdiff
Clarify functionality of form_set master
authorLizzy Fleckenstein <eliasfleckenstein@web.de>
Thu, 20 Apr 2023 19:36:16 +0000 (21:36 +0200)
committerLizzy Fleckenstein <eliasfleckenstein@web.de>
Thu, 20 Apr 2023 19:36:16 +0000 (21:36 +0200)
src/main.rs

index abffc91541b6db7c913537fb0e1a6b458f5a6b28..44a76aac92b79817f6161a9d10586498c66d80bc 100644 (file)
@@ -29,7 +29,7 @@ async fn form_get(
 
 // this is dumb but it works
 // we don't use a hashmap because keys may be duplicated
-// this overwrites the entry with a certain key
+// this overwrites the first entry with a certain key
 fn form_set(form: &mut Vec<(String, String)>, key: &str, value: String) {
     for entry in form.iter_mut() {
         if entry.0 == key {