style: auto-format example files with lux fmt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 06:52:44 -05:00
parent 8c90d5a8dc
commit 44ea1eebb0
54 changed files with 580 additions and 1483 deletions

View File

@@ -1,11 +1,5 @@
// String utilities module
// Exports: repeat, exclaim
fn repeat(s: String, n: Int): String = if n <= 0 then "" else s + repeat(s, n - 1)
pub fn repeat(s: String, n: Int): String =
if n <= 0 then ""
else s + repeat(s, n - 1)
fn exclaim(s: String): String = s + "!"
pub fn exclaim(s: String): String = s + "!"
pub fn greet(name: String): String =
"Hello, " + name + "!"
fn greet(name: String): String = "Hello, " + name + "!"