From 54e0da59e37c25f5b9f9cd8fbe162184debe521b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 3 Oct 2020 18:15:09 +0200 Subject: =?UTF-8?q?Small=20documentation=20fixes=20=F0=9F=A7=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/ast/lit.rs | 2 +- src/syntax/span.rs | 2 +- src/syntax/token.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/ast/lit.rs b/src/syntax/ast/lit.rs index c08dc8cd..3b6441e7 100644 --- a/src/syntax/ast/lit.rs +++ b/src/syntax/ast/lit.rs @@ -22,7 +22,7 @@ pub enum Lit { Length(Length), /// A percent literal: `50%`. /// - /// Note: `50%` is represented as `50.0` here, but as `0.5` in the + /// _Note_: `50%` is represented as `50.0` here, but as `0.5` in the /// corresponding [value]. /// /// [value]: ../../eval/enum.Value.html#variant.Relative diff --git a/src/syntax/span.rs b/src/syntax/span.rs index 09e5f02c..e9e1021c 100644 --- a/src/syntax/span.rs +++ b/src/syntax/span.rs @@ -83,7 +83,7 @@ impl Spanned { } impl Spanned> { - /// Swap the spanned and option. + /// Swap the spanned and the option. pub fn transpose(self) -> Option> { let Spanned { v, span } = self; v.map(|v| v.span_with(span)) diff --git a/src/syntax/token.rs b/src/syntax/token.rs index e3fada43..cb0526c1 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -75,7 +75,7 @@ pub enum Token<'s> { Length(Length), /// A percentage: `50%`. /// - /// Note: `50%` is represented as `50.0` here, as in the corresponding + /// _Note_: `50%` is represented as `50.0` here, as in the corresponding /// [literal]. /// /// [literal]: ../ast/enum.Lit.html#variant.Percent -- cgit v1.2.3