summaryrefslogtreecommitdiff
path: root/library/src/compute/data.rs
diff options
context:
space:
mode:
authorMALO <57839069+MDLC01@users.noreply.github.com>2023-06-24 14:33:17 +0200
committerGitHub <noreply@github.com>2023-06-24 14:33:17 +0200
commitb96b7b7ee12a5d1c8e8c24c95b58b7ca03cec44b (patch)
treea8884268565be8540c509e53f0fdbccd5e73b89f /library/src/compute/data.rs
parent48c25f4da01aa5cbd5e49145f591c85b676e8a54 (diff)
Use third person in documentation (#1560)
Diffstat (limited to 'library/src/compute/data.rs')
-rw-r--r--library/src/compute/data.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs
index 0d4d4865..1d6bec60 100644
--- a/library/src/compute/data.rs
+++ b/library/src/compute/data.rs
@@ -3,7 +3,7 @@ use typst::eval::Datetime;
use crate::prelude::*;
-/// Read plain text from a file.
+/// Reads plain text from a file.
///
/// The file will be read and returned as a string.
///
@@ -33,7 +33,7 @@ pub fn read(
Ok(text.into())
}
-/// Read structured data from a CSV file.
+/// Reads structured data from a CSV file.
///
/// The CSV file will be read and parsed into a 2-dimensional array of strings:
/// Each row in the CSV file will be represented as an array of strings, and all
@@ -129,7 +129,7 @@ fn format_csv_error(error: csv::Error, line: usize) -> EcoString {
}
}
-/// Read structured data from a JSON file.
+/// Reads structured data from a JSON file.
///
/// The file must contain a valid JSON object or array. JSON objects will be
/// converted into Typst dictionaries, and JSON arrays will be converted into
@@ -211,7 +211,7 @@ fn format_json_error(error: serde_json::Error) -> EcoString {
eco_format!("failed to parse json file: syntax error in line {}", error.line())
}
-/// Read structured data from a TOML file.
+/// Reads structured data from a TOML file.
///
/// The file must contain a valid TOML table. TOML tables will be
/// converted into Typst dictionaries, and TOML arrays will be converted into
@@ -304,7 +304,7 @@ fn format_toml_error(error: toml::de::Error) -> EcoString {
}
}
-/// Read structured data from a YAML file.
+/// Reads structured data from a YAML file.
///
/// The file must contain a valid YAML object or array. YAML mappings will be
/// converted into Typst dictionaries, and YAML sequences will be converted into
@@ -396,7 +396,7 @@ fn format_yaml_error(error: serde_yaml::Error) -> EcoString {
eco_format!("failed to parse yaml file: {}", error.to_string().trim())
}
-/// Read structured data from an XML file.
+/// Reads structured data from an XML file.
///
/// The XML file is parsed into an array of dictionaries and strings. XML nodes
/// can be elements or strings. Elements are represented as dictionaries with