]> git.lizzy.rs Git - istanco_ddns.git/blobdiff - src/main.rs
Clarify functionality of form_set
[istanco_ddns.git] / 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 {