about summary refs log tree commit diff
path: root/src/libcore/any.rs
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2019-09-05 17:15:28 +0100
committerAlexander Regueiro <alexreg@me.com>2019-09-06 16:02:25 +0100
commitb0006dff1041f0eea718ca29607cd6ec372e4e30 (patch)
treede6d8a0d438052c300a561078082bb1f2d62c203 /src/libcore/any.rs
parent1fb3c4ec7ca37d33bd1e68cce669d171c2752615 (diff)
downloadrust-b0006dff1041f0eea718ca29607cd6ec372e4e30.tar.gz
rust-b0006dff1041f0eea718ca29607cd6ec372e4e30.zip
A few cosmetic improvements to code & comments in liballoc and libcore
Diffstat (limited to 'src/libcore/any.rs')
-rw-r--r--src/libcore/any.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs
index e8a0a88f12a..0afbf4f1346 100644
--- a/src/libcore/any.rs
+++ b/src/libcore/any.rs
@@ -153,13 +153,13 @@ impl dyn Any {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[inline]
     pub fn is<T: Any>(&self) -> bool {
-        // Get TypeId of the type this function is instantiated with
+        // Get `TypeId` of the type this function is instantiated with.
         let t = TypeId::of::<T>();
 
-        // Get TypeId of the type in the trait object
+        // Get `TypeId` of the type in the trait object.
         let concrete = self.type_id();
 
-        // Compare both TypeIds on equality
+        // Compare both `TypeId`s on equality.
         t == concrete
     }