Skip to main content

URL_PREFIX

Constant URL_PREFIX 

Source
pub const URL_PREFIX: &str = "Upstream: ";
Expand description

How every install hint introduces its upstream page.

One convention, named once, because there were two. Three hints carried the URL as a Note reading Upstream: … and two promoted it into a Line::Command — and both of the two were the hints whose prose said they had no command, so the odd rendering and the contradicted comment were the same mistake seen from either end.

The Note is the right side of that split. Line::Command renders one step further in, as the thing to copy and run; a page is a thing to read, and the label is what says which of the two a reader is looking at. Reserving the command slot for commands is also what lets a hint say “there is nothing to paste here” and be visibly telling the truth.

tests::every_hint_renders_its_upstream_page_the_same_way holds it, so a fifth adapter cannot introduce a third convention.