mirror of https://github.com/astral-sh/uv
Fixup `HTTP_BASIC` reference in docstring (#8314)
This commit is contained in:
parent
b9cd549138
commit
cf7fcaa942
|
|
@ -143,8 +143,8 @@ impl Credentials {
|
|||
|
||||
/// Extract the [`Credentials`] from the environment, given a named source.
|
||||
///
|
||||
/// For example, given a name of `"pytorch"`, search for `UV_HTTP_BASIC_PYTORCH_USERNAME` and
|
||||
/// `UV_HTTP_BASIC_PYTORCH_PASSWORD`.
|
||||
/// For example, given a name of `"pytorch"`, search for `UV_INDEX_PYTORCH_USERNAME` and
|
||||
/// `UV_INDEX_PYTORCH_PASSWORD`.
|
||||
pub fn from_env(name: &str) -> Option<Self> {
|
||||
let name = name.to_uppercase();
|
||||
let username = std::env::var(EnvVars::index_username(&name)).ok();
|
||||
|
|
|
|||
Loading…
Reference in New Issue