Verified Commit 0fb4400c authored by Camil Staps's avatar Camil Staps 🚀

Fix ABC code example

parent 6ecfef05
......@@ -296,7 +296,7 @@ bs_code =
, syntax_examples = map (EX "Function") // TODO highlighting
[ "add :: !Int !Int -> Int // Primitive function\nadd a b = code inline {\n\taddI\n}"
, "sleep :: !Int !*World -> *(!Int, !*World) // Linking with C\nsleep n w = code {\n\tccall sleep \"I:I:A\"\n}"
, "cast :: !.a -> .b // Bypassing the type system\ncast _ = code {\n\tpop_a 1\n}"
, "cast :: !.a -> .b // Bypassing the type system\ncast _ = code {\n\tno_op\n}"
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment