Fix order of indices in 'FromForm' map notes.

This commit is contained in:
Sergio Benitez 2021-06-29 03:30:00 -07:00
parent c2e457c00f
commit 9399841b0c

View File

@ -161,11 +161,11 @@ use crate::http::uncased::AsUncased;
/// pushed to `K`'s parser and the remaining shifted field is pushed to /// pushed to `K`'s parser and the remaining shifted field is pushed to
/// `V`'s parser. /// `V`'s parser.
/// ///
/// If the key has two indices (`map[index:k]=value` or /// If the key has two indices (`map[k:index]=value` or
/// `map[index:v]=value`), the second index must start with `k` or `v`. If /// `map[v:index]=value`), the first index must start with `k` or `v`. If
/// the second index starts with `k`, the shifted field is pushed to `K`'s /// the first index starts with `k`, the shifted field is pushed to `K`'s
/// parser. If the second index starts with `v`, the shifted field is pushed /// parser. If the first index starts with `v`, the shifted field is pushed
/// to `V`'s parser. If the second index is anything else, an error is /// to `V`'s parser. If the first index is anything else, an error is
/// created for the offending form field. /// created for the offending form field.
/// ///
/// Errors are collected as they occur. Finalization finalizes all pairs and /// Errors are collected as they occur. Finalization finalizes all pairs and