From 1d86f418315a2dd632016c32bfedfcf2af1b0369 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 29 Jan 2023 23:41:54 +0100 Subject: [PATCH] Remove more blocks --- library/src/compute/data.rs | 4 ++-- library/src/compute/foundations.rs | 8 ++++---- library/src/math/matrix.rs | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index 63e137e65..16b5fbbdc 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -166,7 +166,7 @@ fn format_csv_error(error: csv::Error) -> String { /// ) /// #h(6pt) /// #set text(22pt, baseline: -8pt) -/// #{day.temperature} °#{day.unit} +/// #day.temperature °#day.unit /// ] /// /// #forecast(json("monday.json")) @@ -253,7 +253,7 @@ fn format_json_error(error: serde_json::Error) -> String { /// heading(title.children.first()) /// text(10pt, weight: "medium")[ /// Published by -/// #{author.children.first()} +/// #author.children.first() /// ] /// /// for p in pars.children { diff --git a/library/src/compute/foundations.rs b/library/src/compute/foundations.rs index c51d57664..2d5d84fe8 100644 --- a/library/src/compute/foundations.rs +++ b/library/src/compute/foundations.rs @@ -41,10 +41,10 @@ pub fn type_(args: &mut Args) -> SourceResult { /// /// ## Example /// ``` -/// #{ none } vs #repr(none) \ -/// #{ "hello" } vs #repr("hello") \ -/// #{ (1, 2) } vs #repr((1, 2)) \ -/// #{ [*Hi*] } vs #repr([*Hi*]) +/// #none vs #repr(none) \ +/// #"hello" vs #repr("hello") \ +/// #(1, 2) vs #repr((1, 2)) \ +/// #[*Hi*] vs #repr([*Hi*]) /// ``` /// /// ## Parameters diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs index 6aa7ba77c..ca2fb9fd3 100644 --- a/library/src/math/matrix.rs +++ b/library/src/math/matrix.rs @@ -75,7 +75,7 @@ impl LayoutMath for VecNode { /// - rows: Array (positional, variadic) /// An array of arrays with the rows of the matrix. /// -/// # Example +/// ### Example /// ``` /// #let data = ((1, 2, 3), (4, 5, 6)) /// #let matrix = math.mat(..data) @@ -210,15 +210,15 @@ impl Delimiter { castable! { Delimiter, - /// Delimit the vector with parentheses. + /// Delimit with parentheses. "(" => Self::Paren, - /// Delimit the vector with brackets. + /// Delimit with brackets. "[" => Self::Bracket, - /// Delimit the vector with curly braces. + /// Delimit with curly braces. "{" => Self::Brace, - /// Delimit the vector with vertical bars. + /// Delimit with vertical bars. "|" => Self::Bar, - /// Delimit the vector with double vertical bars. + /// Delimit with double vertical bars. "||" => Self::DoubleBar, }