From e3bd39c9d156a4a02a8b7398ed5769100a3d877a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 4 Mar 2024 15:51:22 +0100 Subject: Add support for shortcut links in docs (#3547) --- docs/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/src/lib.rs') diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 9ec5b087..3856b1be 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -92,7 +92,8 @@ pub fn provide(resolver: &dyn Resolver) -> Vec { /// Resolve consumer dependencies. pub trait Resolver { - /// Try to resolve a link that the system cannot resolve itself. + /// Try to resolve a link. If this returns `None`, the system will try to + /// resolve the link itself. fn link(&self, link: &str) -> Option; /// Produce an URL for an image file. -- cgit v1.2.3