diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-30 14:49:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-30 14:50:43 +0200 |
| commit | 25e94cef0372e3b3aae9bd662f6012143e90e1cb (patch) | |
| tree | 5da197a911ab6b2d679cc3fe8df9b9072ccf1e31 /docs/src/html.rs | |
| parent | f90fcd664bd64e4c7fd996e8d0825e7031625763 (diff) | |
Fix doc links
Diffstat (limited to 'docs/src/html.rs')
| -rw-r--r-- | docs/src/html.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/src/html.rs b/docs/src/html.rs index d02f768e..5363d1b2 100644 --- a/docs/src/html.rs +++ b/docs/src/html.rs @@ -308,8 +308,9 @@ impl<'a> Handler<'a> { route.push_str(method); } else if root == "$func" { let mut parts = rest.split('.').peekable(); + let first = parts.peek().copied(); let mut focus = &LIBRARY.global; - while let Some(m) = parts.peek().and_then(|name| module(focus, name).ok()) { + while let Some(m) = first.and_then(|name| module(focus, name).ok()) { focus = m; parts.next(); } @@ -324,6 +325,7 @@ impl<'a> Handler<'a> { if let Some(group) = GROUPS .iter() + .filter(|_| first == Some("math")) .find(|group| group.functions.iter().any(|func| func == info.name)) { route.push_str(&group.name); |
