From f97d34f0b26611438628b55e2bfc01a713585438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20L=C3=B3pez?= Date: Tue, 30 Jul 2024 16:00:30 +0200 Subject: [PATCH] riscv-semihosting: fix ambiguous documentation link Fix the following warning when generating the crate documentation: warning: `syscall` is both a function and a macro --> riscv-semihosting/src/lib.rs:212:15 | 212 | /// Same as [`syscall`]. | ^^^^^^^ ambiguous link | = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default help: to link to the function, add parentheses | 212 | /// Same as [`syscall()`]. | ++ help: to link to the macro, add an exclamation mark | 212 | /// Same as [`syscall!`]. | + --- riscv-semihosting/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv-semihosting/src/lib.rs b/riscv-semihosting/src/lib.rs index 5a413ff9..c7c1968f 100644 --- a/riscv-semihosting/src/lib.rs +++ b/riscv-semihosting/src/lib.rs @@ -209,7 +209,7 @@ pub unsafe fn syscall(nr: usize, arg: &T) -> usize { /// /// # Safety /// -/// Same as [`syscall`]. +/// Same as [`syscall()`]. #[inline(always)] pub unsafe fn syscall1(_nr: usize, _arg: usize) -> usize { match () {