[librsvg: 2/12] Fix doc_markdown warnings.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/12] Fix doc_markdown warnings.
- Date: Mon, 8 Jan 2018 15:21:22 +0000 (UTC)
commit c51a17add11fb923a9b422a0b193e6522fb4e0f3
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Sat Dec 16 20:59:20 2017 +0200
Fix doc_markdown warnings.
More info: https://rust-lang-nursery.github.io/rust-clippy/v0.0.176/index.html#doc_markdown
rust/src/aspect_ratio.rs | 4 ++--
rust/src/opacity.rs | 2 +-
rust/src/space.rs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rust/src/aspect_ratio.rs b/rust/src/aspect_ratio.rs
index 9cad1ba..5039b67 100644
--- a/rust/src/aspect_ratio.rs
+++ b/rust/src/aspect_ratio.rs
@@ -1,6 +1,6 @@
-//! Handling of preserveAspectRatio values
+//! Handling of `preserveAspectRatio` values
//!
-//! This module handles preserveAspectRatio values [per the SVG specification][spec].
+//! This module handles `preserveAspectRatio` values [per the SVG specification][spec].
//! We have an [`AspectRatio`] struct which encapsulates such a value.
//!
//! ```
diff --git a/rust/src/opacity.rs b/rust/src/opacity.rs
index 84f2907..1408679 100644
--- a/rust/src/opacity.rs
+++ b/rust/src/opacity.rs
@@ -1,5 +1,5 @@
/// Struct to represent an inheritable opacity property
-/// https://www.w3.org/TR/SVG/masking.html#OpacityProperty
+/// <https://www.w3.org/TR/SVG/masking.html#OpacityProperty>
use ::cssparser::{Parser, ParserInput, Token};
use ::libc;
diff --git a/rust/src/space.rs b/rust/src/space.rs
index a2de800..788d57f 100644
--- a/rust/src/space.rs
+++ b/rust/src/space.rs
@@ -13,7 +13,7 @@ pub enum XmlSpace {
///
/// Normalizes a string as it comes out of the XML parser's handler
/// for character data according to the SVG rules in
-/// https://www.w3.org/TR/SVG/text.html#WhiteSpace
+/// <https://www.w3.org/TR/SVG/text.html#WhiteSpace>
pub fn xml_space_normalize(mode: XmlSpace, s: &str) -> String {
match mode {
XmlSpace::Default => normalize_default(s),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]