- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Rust will document the test function the following code as taking a ThisIsTotallyNotAnOption<String> rather than a Option<String>. This is confusing at first glance because without looking at the source or actually following the link, there is no indication as to what the type actually is.
use std::option::{Option as ThisIsTotallyNotAnOption}; pub fn test(o: ThisIsTotallyNotAnOption<String>) { }Metadata
Metadata
Assignees
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.