1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(docs): correctly resolve href for built-ins (#24228)

This commit is contained in:
Leo Kettmeir 2024-06-17 16:06:05 +02:00 committed by Bartek Iwańczuk
parent bff235a8ec
commit 10828cd62c
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -224,7 +224,7 @@ impl deno_doc::html::HrefResolver for DocResolver {
fn resolve_global_symbol(&self, symbol: &[String]) -> Option<String> { fn resolve_global_symbol(&self, symbol: &[String]) -> Option<String> {
if self.deno_ns.contains(symbol) { if self.deno_ns.contains(symbol) {
Some(format!( Some(format!(
"https://deno.land/api@{}?s={}", "https://deno.land/api@v{}?s={}",
env!("CARGO_PKG_VERSION"), env!("CARGO_PKG_VERSION"),
symbol.join(".") symbol.join(".")
)) ))