File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -446,14 +446,14 @@ impl TypeId {
446
446
/// # Note
447
447
///
448
448
/// This is intended for diagnostic use. The exact contents and format of the
449
- /// string are not specified, other than being a best-effort description of the
450
- /// type. For example, `type_name::<Option<String>>()` could return the
451
- /// `"Option<String>"` or `"std::option::Option<std::string::String>"`, but not
452
- /// `"foobar"`. In addition, the output may change between versions of the
453
- /// compiler.
449
+ /// string retrned are not specified, other than being a best-effort description
450
+ /// of the type. For example, amongst the strings
451
+ /// that `type_name::<Option<String>>()` might map to are `"Option<String>"` and
452
+ /// `"std::option::Option<std::string::String>"`.
454
453
///
455
- /// The type name should not be considered a unique identifier of a type;
456
- /// multiple types may share the same type name.
454
+ /// The returned string must not be considered to be a unique identifier of a
455
+ /// type as multiple types may map to the same type name. In addition, the
456
+ /// output may change between versions of the compiler.
457
457
///
458
458
/// The current implementation uses the same infrastructure as compiler
459
459
/// diagnostics and debuginfo, but this is not guaranteed.
You can’t perform that action at this time.
0 commit comments