diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-07-26 17:41:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-26 17:41:07 +0200 |
| commit | e7ffdde43d09f60238590723c2829554806e23d5 (patch) | |
| tree | 616ae4474f0dec5cc70fe3fa46b5f3c4b305a1be /src/syntax/test.rs | |
| parent | 0e8c2cad6e4fee283f8f2d6fb9a571173b59fda2 (diff) | |
| parent | e2ef4f64e777f293a0408d0f60cfed9de69c7bb6 (diff) | |
Merge pull request #5 from typst/problems-and-error-macro
Rename errors to problems and make error! macro more ergonomic
Diffstat (limited to 'src/syntax/test.rs')
| -rw-r--r-- | src/syntax/test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/test.rs b/src/syntax/test.rs index 47680487..465f475a 100644 --- a/src/syntax/test.rs +++ b/src/syntax/test.rs @@ -29,7 +29,7 @@ where T: Debug + PartialEq + SpanlessEq { /// spanned![(0:0, 0:5, "hello"), (0:5, 0:3, "world")] /// ``` /// The span information can simply be omitted to create a vector with items -/// that are spanned with dummy zero spans. +/// that are spanned with zero spans. macro_rules! spanned { (item ($sl:tt:$sc:tt, $el:tt:$ec:tt, $v:expr)) => ({ #[allow(unused_imports)] @@ -80,7 +80,7 @@ function! { } } - layout(self, ctx, errors) { vec![] } + layout(self, ctx, f) { vec![] } } /// Compares elements by only looking at values and ignoring spans. |
