summaryrefslogtreecommitdiff
path: root/library/src/compute
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 12:50:33 +0100
commitba294e2670814243122c9e4f560e0f21a4bec13d (patch)
tree36bdf987dc53729bb4a176713b40e2ca7c08a874 /library/src/compute
parent959df6da3b6e3c5876e9d5627cb2970e32a0a37f (diff)
Split up list type into three separate types and document them
Diffstat (limited to 'library/src/compute')
-rw-r--r--library/src/compute/data.rs8
-rw-r--r--library/src/compute/foundations.rs3
2 files changed, 4 insertions, 7 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs
index 3751292c..43d06753 100644
--- a/library/src/compute/data.rs
+++ b/library/src/compute/data.rs
@@ -129,8 +129,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"))
@@ -180,10 +179,7 @@ fn convert_json(value: serde_json::Value) -> Value {
/// Format the user-facing JSON error message.
fn format_json_error(error: serde_json::Error) -> String {
assert!(error.is_syntax() || error.is_eof());
- format!(
- "failed to parse json file: syntax error in line {}",
- error.line()
- )
+ format!("failed to parse json file: syntax error in line {}", error.line())
}
/// # XML
diff --git a/library/src/compute/foundations.rs b/library/src/compute/foundations.rs
index 91c97ecc..06795887 100644
--- a/library/src/compute/foundations.rs
+++ b/library/src/compute/foundations.rs
@@ -41,7 +41,8 @@ pub fn type_(args: &mut Args) -> SourceResult<Value> {
/// ```
/// { none } vs #repr(none) \
/// { "hello" } vs #repr("hello") \
-/// { (1, 2) } vs #repr((1, 2))
+/// { (1, 2) } vs #repr((1, 2)) \
+/// { [*Hi*] } vs #repr([*Hi*])
/// ```
///
/// ## Parameters