Skip to content

Commit b06f02f

Browse files
authored
Fix typo in _CONDA_ROOT docs (#16114)
All other references are correct, just slipped through in the actual docs.
1 parent 1bdb096 commit b06f02f

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

crates/uv-macros/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,15 @@ pub fn attribute_env_vars_metadata(_attr: TokenStream, input: TokenStream) -> To
9191
.iter()
9292
.filter_map(|item| match item {
9393
ImplItem::Const(item) if !is_hidden(&item.attrs) => {
94-
let name = item.ident.to_string();
9594
let doc = get_doc_comment(&item.attrs);
95+
let syn::Expr::Lit(syn::ExprLit {
96+
lit: syn::Lit::Str(lit),
97+
..
98+
}) = &item.expr
99+
else {
100+
return None;
101+
};
102+
let name = lit.value();
96103
Some((name, doc))
97104
}
98105
ImplItem::Fn(item) if !is_hidden(&item.attrs) => {

docs/reference/environment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,6 @@ Used to determine the name of the active Conda environment.
635635

636636
Used to detect the path of an active Conda environment.
637637

638-
### `CONDA_ROOT`
639-
640-
Used to determine the root install path of Conda.
641-
642638
### `FISH_VERSION`
643639

644640
Used to detect Fish shell usage.
@@ -889,3 +885,7 @@ Used to determine which `.zshenv` to use when Zsh is being used.
889885

890886
Used to detect Zsh shell usage.
891887

888+
### `_CONDA_ROOT`
889+
890+
Used to determine the root install path of Conda.
891+

0 commit comments

Comments
 (0)