summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/mod.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs
index f25c6397..9baae044 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -24,10 +24,8 @@ pub fn std() -> Scope {
std.add::<PageBreak>("page.break");
std.add_with_metadata::<Spacing, Option<AxisKey>>("spacing", None);
- for (name, key) in &[
- ("h", AxisKey::Horizontal),
- ("v", AxisKey::Vertical),
- ] {
+
+ for (name, key) in &[("h", AxisKey::Horizontal), ("v", AxisKey::Vertical)] {
std.add_with_metadata::<Spacing, Option<AxisKey>>(name, Some(*key));
}
@@ -200,7 +198,7 @@ function! {
}
function! {
- /// Sets text with a different style.
+ /// `bold`, `italic`, `mono`: Sets text with a different style.
#[derive(Debug, PartialEq)]
pub struct StyleChange {
body: Option<SyntaxTree>,