diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-05 20:29:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-05 20:29:55 +0100 |
| commit | f5b104d0da1c414fb59878d7378add316ee14798 (patch) | |
| tree | 56968591bd997aa78cb8690da318ee97a822f2a9 /src/library/mod.rs | |
| parent | 72a9631b038d1a60e4e4a78e92cd69e6f8ce4316 (diff) | |
Rename crate `typst` -> `typstc` ✏
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 8 |
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>, |
