Rollup merge of #67317 - lcnr:type_name_docs, r=jonas-schievink

fix type_name_of_val doc comment

.
This commit is contained in:
Mazdak Farrokhzad 2019-12-16 05:23:36 +01:00 committed by GitHub
commit d18239755a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.