From 058a028aef6f056a31d1e9a09fa83d498c553b78 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 19 Feb 2025 18:50:50 -0500 Subject: Switch to langs using constructors --- docs/langs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/langs.md b/docs/langs.md index 37141bdc..96c026f1 100644 --- a/docs/langs.md +++ b/docs/langs.md @@ -10,7 +10,7 @@ where a different type of string is needed. ```tomo lang HTML: - func escape(t:Text -> HTML): + func HTML(t:Text -> HTML): t = t:replace_all({ $/&/ = "&", $/ Sh): + func Sh(text:Text -> Sh): return Sh.without_escaping("'" ++ text:replace($/'/, "''") ++ "'") func execute(sh:Sh -> Text): -- cgit v1.2.3