From bb99d5da4c9d7d17e08097d004bf36f0976a678c Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Sun, 5 Sep 2021 22:22:45 +0800 Subject: fix(doc): fix rustdoc bare_urls warning (#11921) --- core/modules.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/modules.rs') diff --git a/core/modules.rs b/core/modules.rs index 3c8976c84..f1f083fe9 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -41,8 +41,8 @@ pub type ModuleLoadId = i32; /// /// Found module URL might be different from specified URL /// used for loading due to redirections (like HTTP 303). -/// Eg. Both "https://example.com/a.ts" and -/// "https://example.com/b.ts" may point to "https://example.com/c.ts" +/// Eg. Both "`https://example.com/a.ts`" and +/// "`https://example.com/b.ts`" may point to "`https://example.com/c.ts`" /// By keeping track of specified and found URL we can alias modules and avoid /// recompiling the same code 3 times. // TODO(bartlomieju): I have a strong opinion we should store all redirects @@ -65,7 +65,7 @@ pub trait ModuleLoader { /// Returns an absolute URL. /// When implementing an spec-complaint VM, this should be exactly the /// algorithm described here: - /// https://html.spec.whatwg.org/multipage/webappapis.html#resolve-a-module-specifier + /// /// /// `is_main` can be used to resolve from current working directory or /// apply import map for child imports. -- cgit v1.2.3