summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-12 15:01:19 +0100
committerHampusM <hampus@hampusmat.com>2022-11-12 15:01:19 +0100
commitd82f5da5aef06a0989430c5ea9cc60a483f1fbff (patch)
tree4f70ab3e1e1b7af5095a5ec24e025e99d0207d5b /examples
parentc584b7177060dd32e77872ad161fb1ed181e4d4a (diff)
feat: add project & repeat_char macroHEADmaster
Diffstat (limited to 'examples')
-rw-r--r--examples/simple.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/simple.rs b/examples/simple.rs
new file mode 100644
index 0000000..b3e5582
--- /dev/null
+++ b/examples/simple.rs
@@ -0,0 +1,8 @@
+use utility_macros::repeat_char;
+
+fn main()
+{
+ let dashes = repeat_char!('-', 16);
+
+ println!("{dashes}\n Hello world!\n{dashes}");
+}