summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/inspector.rs4
-rw-r--r--core/lib.rs2
-rw-r--r--core/module_specifier.rs2
-rw-r--r--core/modules.rs6
-rw-r--r--core/normalize_path.rs2
5 files changed, 8 insertions, 8 deletions
diff --git a/core/inspector.rs b/core/inspector.rs
index ef59cf413..74e50dc69 100644
--- a/core/inspector.rs
+++ b/core/inspector.rs
@@ -1,8 +1,8 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
//! The documentation for the inspector API is sparse, but these are helpful:
-//! https://chromedevtools.github.io/devtools-protocol/
-//! https://hyperandroid.com/2020/02/12/v8-inspector-from-an-embedder-standpoint/
+//! <https://chromedevtools.github.io/devtools-protocol/>
+//! <https://hyperandroid.com/2020/02/12/v8-inspector-from-an-embedder-standpoint/>
use crate::error::generic_error;
use crate::error::AnyError;
diff --git a/core/lib.rs b/core/lib.rs
index b19029884..76b3a4f37 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -101,7 +101,7 @@ pub fn v8_version() -> &'static str {
/// A helper macro that will return a call site in Rust code. Should be
/// used when executing internal one-line scripts for JsRuntime lifecycle.
///
-/// Returns a string in form of: "[deno:<filename>:<line>:<column>]"
+/// Returns a string in form of: "`[deno:<filename>:<line>:<column>]`"
#[macro_export]
macro_rules! located_script_name {
() => {
diff --git a/core/module_specifier.rs b/core/module_specifier.rs
index 831a0f2ac..0668fd016 100644
--- a/core/module_specifier.rs
+++ b/core/module_specifier.rs
@@ -54,7 +54,7 @@ impl fmt::Display for ModuleResolutionError {
pub type ModuleSpecifier = Url;
/// Resolves module using this algorithm:
-/// https://html.spec.whatwg.org/multipage/webappapis.html#resolve-a-module-specifier
+/// <https://html.spec.whatwg.org/multipage/webappapis.html#resolve-a-module-specifier>
pub fn resolve_import(
specifier: &str,
base: &str,
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
+ /// <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.
diff --git a/core/normalize_path.rs b/core/normalize_path.rs
index 4ae41bbdf..a7facf4db 100644
--- a/core/normalize_path.rs
+++ b/core/normalize_path.rs
@@ -8,7 +8,7 @@ use std::path::PathBuf;
/// Similar to `fs::canonicalize()` but doesn't resolve symlinks.
///
/// Taken from Cargo
-/// https://github.com/rust-lang/cargo/blob/af307a38c20a753ec60f0ad18be5abed3db3c9ac/src/cargo/util/paths.rs#L60-L85
+/// <https://github.com/rust-lang/cargo/blob/af307a38c20a753ec60f0ad18be5abed3db3c9ac/src/cargo/util/paths.rs#L60-L85>
pub fn normalize_path<P: AsRef<Path>>(path: P) -> PathBuf {
let mut components = path.as_ref().components().peekable();
let mut ret =