Skip to content

Commit

Permalink
Fixup HTTP_BASIC reference in docstring (#8314)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Oct 18, 2024
1 parent b9cd549 commit cf7fcaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv-auth/src/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cf7fcaa

Please sign in to comment.