We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aecb1c commit 16cd950Copy full SHA for 16cd950
src/wkt/src/internal/int32.rs
@@ -41,8 +41,8 @@ impl serde::de::Visitor<'_> for I32Visitor {
41
E: serde::de::Error,
42
{
43
// ProtoJSON says that both strings and numbers are accepted. Parse the
44
- // string as a f64 number (all JSON numbers are f64) and then try to
45
- // parse that as a
+ // string as a `f64` number (all JSON numbers are `f64`) and then try to
+ // parse that as an `i32`.
46
let number = value.parse::<f64>().map_err(E::custom)?;
47
self.visit_f64(number)
48
}
0 commit comments