Skip to main content

package_correcting_message

Function package_correcting_message 

Source
pub fn package_correcting_message(name: &str, fetch_with: &str) -> String
Expand description

A package name asked of a built-ins surface. The forgiveness here is asymmetric on purpose: a built-in asked of packages.docs is simply served, because it needs no import, while a package needs an import the caller still has to write — so this names the call to make rather than hiding that step behind the declarations.

fetch_with is the call the asking surface actually accepts, exactly as in builtins_pointer.