summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorFeng Yu <f3n67u@gmail.com>2021-09-05 22:22:45 +0800
committerGitHub <noreply@github.com>2021-09-05 16:22:45 +0200
commitbb99d5da4c9d7d17e08097d004bf36f0976a678c (patch)
tree358ad4c80ed7ebffc9f291ca84490b667012be24 /cli
parentf9d29115a0164a861c99b36a0919324920225e42 (diff)
fix(doc): fix rustdoc bare_urls warning (#11921)
Diffstat (limited to 'cli')
-rw-r--r--cli/http_cache.rs2
-rw-r--r--cli/import_map.rs2
-rw-r--r--cli/lsp/urls.rs2
-rw-r--r--cli/text_encoding.rs2
-rw-r--r--cli/tools/fmt.rs6
5 files changed, 7 insertions, 7 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs
index 115eb10a4..9a6a89b56 100644
--- a/cli/http_cache.rs
+++ b/cli/http_cache.rs
@@ -1,6 +1,6 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
//! This module is meant to eventually implement HTTP cache
-//! as defined in RFC 7234 (https://tools.ietf.org/html/rfc7234).
+//! as defined in RFC 7234 (<https://tools.ietf.org/html/rfc7234>).
//! Currently it's a very simplified version to fulfill Deno needs
//! at hand.
use crate::fs_util;
diff --git a/cli/import_map.rs b/cli/import_map.rs
index aa76d8d76..4e9feb0be 100644
--- a/cli/import_map.rs
+++ b/cli/import_map.rs
@@ -160,7 +160,7 @@ impl ImportMap {
/// Parse provided key as import map specifier.
///
- /// Specifiers must be valid URLs (eg. "https://deno.land/x/std/testing/asserts.ts")
+ /// Specifiers must be valid URLs (eg. "`https://deno.land/x/std/testing/asserts.ts`")
/// or "bare" specifiers (eg. "moment").
fn normalize_specifier_key(
specifier_key: &str,
diff --git a/cli/lsp/urls.rs b/cli/lsp/urls.rs
index 52876157a..0987b51c4 100644
--- a/cli/lsp/urls.rs
+++ b/cli/lsp/urls.rs
@@ -20,7 +20,7 @@ lazy_static::lazy_static! {
/// Matches the `encodeURIComponent()` encoding from JavaScript, which matches
/// the component percent encoding set.
///
-/// See: https://url.spec.whatwg.org/#component-percent-encode-set
+/// See: <https://url.spec.whatwg.org/#component-percent-encode-set>
///
// TODO(@kitsonk) - refactor when #9934 is landed.
const COMPONENT: &percent_encoding::AsciiSet = &percent_encoding::CONTROLS
diff --git a/cli/text_encoding.rs b/cli/text_encoding.rs
index f61b877dc..5c638ccd5 100644
--- a/cli/text_encoding.rs
+++ b/cli/text_encoding.rs
@@ -29,7 +29,7 @@ pub fn detect_charset(bytes: &'_ [u8]) -> &'static str {
///
/// Supports all encodings supported by the encoding_rs crate, which includes
/// all encodings specified in the WHATWG Encoding Standard, and only those
-/// encodings (see: https://encoding.spec.whatwg.org/).
+/// encodings (see: <https://encoding.spec.whatwg.org/>).
pub fn convert_to_utf8<'a>(
bytes: &'a [u8],
charset: &'_ str,
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs
index 33c3599d7..59f9ddc8b 100644
--- a/cli/tools/fmt.rs
+++ b/cli/tools/fmt.rs
@@ -89,7 +89,7 @@ pub async fn format(
Ok(())
}
-/// Formats markdown (using https://github.com/dprint/dprint-plugin-markdown) and its code blocks
+/// Formats markdown (using <https://github.com/dprint/dprint-plugin-markdown>) and its code blocks
/// (ts/tsx, js/jsx).
fn format_markdown(
file_text: &str,
@@ -144,8 +144,8 @@ fn format_markdown(
}
/// Formats JSON and JSONC using the rules provided by .deno()
-/// of configuration builder of https://github.com/dprint/dprint-plugin-json.
-/// See https://git.io/Jt4ht for configuration.
+/// of configuration builder of <https://github.com/dprint/dprint-plugin-json>.
+/// See <https://git.io/Jt4ht> for configuration.
fn format_json(file_text: &str) -> Result<String, String> {
let json_config = get_json_config();
dprint_plugin_json::format_text(file_text, &json_config)