From d8f7fbb9d890d573c828e1db5bef27e6141391c6 Mon Sep 17 00:00:00 2001 From: Lens0021 / Leslie <lorentz0021@gmail.com> Date: Sun, 29 Dec 2024 20:10:41 +0900 Subject: [PATCH] [docs] Use version instead of master when linking (#649) --- src/modules/function/declaration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/function/declaration.rs b/src/modules/function/declaration.rs index 818c680f..62128be0 100644 --- a/src/modules/function/declaration.rs +++ b/src/modules/function/declaration.rs @@ -323,7 +323,7 @@ impl FunctionDeclaration { let path = entry.path(); if let Some(file_name) = path.file_name().and_then(OsStr::to_str) { if pattern.matches(file_name) { - references.push(format!("* [{}](https://github.com/amber-lang/amber/blob/master/src/tests/stdlib/{})", file_name, file_name)); + references.push(format!("* [{}](https://github.com/amber-lang/amber/blob/{}/src/tests/stdlib/{})", file_name, env!("CARGO_PKG_VERSION"), file_name)); } } }