Fix typo in json example.

This commit is contained in:
Josh Holmer 2017-02-16 21:56:44 -05:00 committed by Sergio Benitez
parent 0acfea9c71
commit 937fe50ad7
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ struct Message {
contents: String
}
// TODO: This example can be improved by using `route` with muliple HTTP verbs.
// TODO: This example can be improved by using `route` with multiple HTTP verbs.
#[post("/<id>", format = "application/json", data = "<message>")]
fn new(id: ID, message: JSON<Message>, map: State<MessageMap>) -> JSON<Value> {
let mut hashmap = map.lock().expect("map lock.");