about summary refs log tree commit diff
path: root/compiler/rustc_serialize/src/json.rs
diff options
context:
space:
mode:
authorFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2021-08-22 16:20:58 +0200
committerFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2021-08-22 16:35:29 +0200
commitbe9d2699ca3581448097ec446fecb45ec171975e (patch)
tree522778fd0a90cacd44bcf1161ce61dd143b4ef84 /compiler/rustc_serialize/src/json.rs
parentbf88b113eab9c36e63f8461f5849138cb60d810a (diff)
downloadrust-be9d2699ca3581448097ec446fecb45ec171975e.tar.gz
rust-be9d2699ca3581448097ec446fecb45ec171975e.zip
Fix more “a”/“an” typos
Diffstat (limited to 'compiler/rustc_serialize/src/json.rs')
-rw-r--r--compiler/rustc_serialize/src/json.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_serialize/src/json.rs b/compiler/rustc_serialize/src/json.rs
index 4d213207fb6..e5369b4bbfd 100644
--- a/compiler/rustc_serialize/src/json.rs
+++ b/compiler/rustc_serialize/src/json.rs
@@ -1202,7 +1202,7 @@ impl Json {
         matches!(*self, Json::I64(_) | Json::U64(_) | Json::F64(_))
     }
 
-    /// Returns `true` if the Json value is a `i64`.
+    /// Returns `true` if the Json value is an `i64`.
     pub fn is_i64(&self) -> bool {
         matches!(*self, Json::I64(_))
     }
@@ -1217,7 +1217,7 @@ impl Json {
         matches!(*self, Json::F64(_))
     }
 
-    /// If the Json value is a number, returns or cast it to a `i64`;
+    /// If the Json value is a number, returns or cast it to an `i64`;
     /// returns `None` otherwise.
     pub fn as_i64(&self) -> Option<i64> {
         match *self {