about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-16 05:23:36 +0100
committerGitHub <noreply@github.com>2019-12-16 05:23:36 +0100
commitd18239755a701f9537eb193d58939ec024467185 (patch)
tree7f36c87573f576cc9839b35d9e02d7e8b7e4821d
parent6b9bb745fae49a5a4ebe8ba943cb2ab773abd83c (diff)
parente28153e7a60f2ba62aa438e68cf086f07f0d3894 (diff)
downloadrust-d18239755a701f9537eb193d58939ec024467185.tar.gz
rust-d18239755a701f9537eb193d58939ec024467185.zip
Rollup merge of #67317 - lcnr:type_name_docs, r=jonas-schievink
fix type_name_of_val doc comment

.
-rw-r--r--src/libcore/any.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs
index b0e3021e0bf..7935c9b1b39 100644
--- a/src/libcore/any.rs
+++ b/src/libcore/any.rs
@@ -476,7 +476,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
 ///
 /// This is intended for diagnostic use. The exact contents and format of the
 /// string are not specified, other than being a best-effort description of the
-/// type. For example, `type_name_of::<Option<String>>(None)` could return the
+/// type. For example, `type_name_of::<Option<String>>(None)` could return
 /// `"Option<String>"` or `"std::option::Option<std::string::String>"`, but not
 /// `"foobar"`. In addition, the output may change between versions of the
 /// compiler.