# HG changeset patch # User Christian Urban # Date 1732906772 0 # Node ID e9eac62928f5fa5309c0a007d7832b3874c00aff # Parent ae5c03560d4d124a0612a46eee926731c3598606 updated diff -r ae5c03560d4d -r e9eac62928f5 progs/fun/funt.sc --- a/progs/fun/funt.sc Fri Nov 29 18:58:18 2024 +0000 +++ b/progs/fun/funt.sc Fri Nov 29 18:59:32 2024 +0000 @@ -156,7 +156,7 @@ // main compiler functions def compile(prog: List[Decl], class_name: String) : String = { val instructions = prog.map(compile_decl).mkString - (library + instructions).replaceAllLiterally("XXX", class_name) + (library + instructions).replace("XXX", class_name) } // pre-2.5.0 ammonite