Stream: rustdoc

Topic: Case sensitivity of intra-doc links: `Eq` -> `eq`?


view this post on Zulip Mara (Jan 10 2021 at 13:00):

https://github.com/rust-lang/rust/pull/80864

Is this a bug? [`Eq`] ended up linking to the eq method instead of the Eq trait.

view this post on Zulip Mara (Jan 10 2021 at 13:03):

Thanks Joshua Nelson :)

view this post on Zulip Mara (Jan 10 2021 at 13:09):

@Joshua Nelson Is there a complete reference somewhere of all the features of links in rustdoc? I only found this, but that doesn't cover everything.

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:10):

that's meant to be the reference, but as usual it's always out of date :sweat_smile:

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:10):

I can update it today

view this post on Zulip Mara (Jan 10 2021 at 13:10):

ah okay, no worries. was just wondering if i was looking at the wrong thinig.

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:11):

oops I promised to do this a month ago lol https://www.reddit.com/r/rust/comments/jx3v8b/announcing_rust_1480/gcxuuw8/?context=3

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:12):

well it will be a nice break from wrestling bootstrap anyway

view this post on Zulip Mara (Jan 10 2021 at 13:14):

is there a preference for either [blah][Eq] or [blah](Eq)? I've seen both. seems like the only difference it makes is that the second one becomes a broken link, and the first one becomes just the literal text with all four brackets, when the link is wrong. (but both warn anyway)

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:14):

I don't have a preference, no

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:14):

I've seen more people using [blah][Eq] in the wild

view this post on Zulip Joshua Nelson (Jan 10 2021 at 13:51):

opened https://github.com/rust-lang/rust/pull/80874


Last updated: Oct 11 2021 at 22:34 UTC