aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-08-30 20:18:04 +0200
committermetamuffin <metamuffin@disroot.org>2022-08-30 20:18:04 +0200
commit3595cf34b9520b7e548972dec8b787d80ecd0049 (patch)
treeae26326eef530a6ac51a7aa405c54a7cbf2491f1
parentbd4aa1d7091ac004d99a7557084f8415f2b0edba (diff)
downloadmetamuffin-blog-3595cf34b9520b7e548972dec8b787d80ecd0049.tar
metamuffin-blog-3595cf34b9520b7e548972dec8b787d80ecd0049.tar.bz2
metamuffin-blog-3595cf34b9520b7e548972dec8b787d80ecd0049.tar.zst
first grammar issues
-rw-r--r--content/articles/2022-08-29-blog-test.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/content/articles/2022-08-29-blog-test.md b/content/articles/2022-08-29-blog-test.md
index cdbeab0..1c4a28a 100644
--- a/content/articles/2022-08-29-blog-test.md
+++ b/content/articles/2022-08-29-blog-test.md
@@ -11,15 +11,23 @@ _italic_ **bold** `code` [Link](https://metamuffin.org/)
Look at this code here.
```rs
+#[derive(Default)]
struct Impossible<T> {
something: HashMap<usize, T>,
+ // ^- look here, a keyword! --the grammar regex
itself: Impossible,
}
pub async fn useless(s: Box<dyn Write>) -> impl Future<usize> {
todo!() // this panics
}
-fn main() { 1 + "blub" }
+fn main() {
+ 1 + "blub"
+ for (x, y) in [(1,2),(3,4)] {
+ println!("{x} and {y}");
+ Impossible::default();
+ }
+}
```
As you can see, its pointless i.e. no points