summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-29 23:41:54 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-29 23:41:54 +0100
commit1d86f418315a2dd632016c32bfedfcf2af1b0369 (patch)
tree843207542c9bde8587159dee143c627684ad0ceb /library
parentc3b3bbb9f23604e9003c300cca6f6c7babe944fc (diff)
Remove more blocks
Diffstat (limited to 'library')
-rw-r--r--library/src/compute/data.rs4
-rw-r--r--library/src/compute/foundations.rs8
-rw-r--r--library/src/math/matrix.rs12
3 files changed, 12 insertions, 12 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs
index 63e137e6..16b5fbbd 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 c51d5766..2d5d84fe 100644
--- a/library/src/compute/foundations.rs
+++ b/library/src/compute/foundations.rs
@@ -41,10 +41,10 @@ pub fn type_(args: &mut Args) -> SourceResult<Value> {
///
/// ## 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 6aa7ba77..ca2fb9fd 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,
}