Skip to content

Commit 7264efd

Browse files
committed
typo
1 parent 48ccfa2 commit 7264efd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runtimes/js/src/cookies.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl JsCookie {
1313
Some(PValue::Bool(b)) => Ok(Some(*b)),
1414
Some(_) => Err(Error::new(
1515
Status::InvalidArg,
16-
format!("cookie field {} must be boolean", key),
16+
format!("cookie field {} must be a boolean", key),
1717
)),
1818
}
1919
}
@@ -23,7 +23,7 @@ impl JsCookie {
2323
Some(PValue::String(s)) => Ok(Some(s.clone())),
2424
Some(_) => Err(Error::new(
2525
Status::InvalidArg,
26-
format!("cookie field {} must be string", key),
26+
format!("cookie field {} must be a string", key),
2727
)),
2828
}
2929
}
@@ -33,7 +33,7 @@ impl JsCookie {
3333
Some(PValue::DateTime(d)) => Ok(Some(*d)),
3434
Some(_) => Err(Error::new(
3535
Status::InvalidArg,
36-
format!("cookie field {} must be datetime", key),
36+
format!("cookie field {} must be a datetime", key),
3737
)),
3838
}
3939
}
@@ -53,13 +53,13 @@ impl JsCookie {
5353
} else {
5454
Err(Error::new(
5555
Status::InvalidArg,
56-
"cookie field {} must be a integer",
56+
"cookie field {} must be an integer",
5757
))
5858
}
5959
}
6060
Some(_) => Err(Error::new(
6161
Status::InvalidArg,
62-
format!("cookie field {} must be datetime", key),
62+
format!("cookie field {} must be an integer", key),
6363
)),
6464
}
6565
}

0 commit comments

Comments
 (0)