mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-17 18:57:30 +00:00
Fix typo in _CONDA_ROOT docs (#16114)
All other references are correct, just slipped through in the actual docs.
This commit is contained in:
parent
1bdb096599
commit
b06f02f13d
2 changed files with 12 additions and 5 deletions
|
|
@ -91,8 +91,15 @@ pub fn attribute_env_vars_metadata(_attr: TokenStream, input: TokenStream) -> To
|
|||
.iter()
|
||||
.filter_map(|item| match item {
|
||||
ImplItem::Const(item) if !is_hidden(&item.attrs) => {
|
||||
let name = item.ident.to_string();
|
||||
let doc = get_doc_comment(&item.attrs);
|
||||
let syn::Expr::Lit(syn::ExprLit {
|
||||
lit: syn::Lit::Str(lit),
|
||||
..
|
||||
}) = &item.expr
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
let name = lit.value();
|
||||
Some((name, doc))
|
||||
}
|
||||
ImplItem::Fn(item) if !is_hidden(&item.attrs) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue