From: Lizzy Fleckenstein Date: Thu, 20 Apr 2023 19:36:16 +0000 (+0200) Subject: Clarify functionality of form_set X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=HEAD;p=istanco_ddns.git Clarify functionality of form_set --- diff --git a/src/main.rs b/src/main.rs index abffc91..44a76aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {