diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-16 05:23:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-16 05:23:36 +0100 |
| commit | d18239755a701f9537eb193d58939ec024467185 (patch) | |
| tree | 7f36c87573f576cc9839b35d9e02d7e8b7e4821d | |
| parent | 6b9bb745fae49a5a4ebe8ba943cb2ab773abd83c (diff) | |
| parent | e28153e7a60f2ba62aa438e68cf086f07f0d3894 (diff) | |
| download | rust-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.rs | 2 |
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. |
