Fix typos

This commit is contained in:
Kian-Meng Ang
2022-08-04 23:06:54 +08:00
parent 961bb6c5f4
commit bb42841a66
19 changed files with 43 additions and 43 deletions

View File

@@ -56,7 +56,7 @@ pub struct TrafficPatternRequest {
pub avg_traffic: u32,
/// the peak traffic that the user's website can handle
pub peak_sustainable_traffic: u32,
/// trafic that bought the user's website down; optional
/// traffic that bought the user's website down; optional
pub broke_my_site_traffic: Option<u32>,
/// Captcha description
pub description: String,

View File

@@ -191,7 +191,7 @@ mod tests {
let updated_token: MCaptchaDetails =
test::read_body_json(update_token_resp).await;
// get levels with udpated key
// get levels with updated key
let get_token_resp = test::call_service(
&app,
post_request!(&updated_token, ROUTES.captcha.get)
@@ -199,7 +199,7 @@ mod tests {
.to_request(),
)
.await;
// if updated key doesn't exist in databse, a non 200 result will bereturned
// if updated key doesn't exist in database, a non 200 result will bereturned
assert_eq!(get_token_resp.status(), StatusCode::OK);
// get stats
@@ -211,7 +211,7 @@ mod tests {
.to_request(),
)
.await;
// if updated key doesn't exist in databse, a non 200 result will bereturned
// if updated key doesn't exist in database, a non 200 result will bereturned
assert_eq!(get_statis_resp.status(), StatusCode::OK);
}
}