File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2731,7 +2731,7 @@ let tc_print (env : Env.t) (loc : Loc.t) (args : AST.expr list) : AST.stmt list
27312731 raise (error " Print must always be used with a literal format string like \" x = {x}\" " )
27322732 )
27332733
2734- (* * Extract variable names from a format string like "x={x } y={y }".
2734+ (* * Extract variable names from a format string like "x=\{x\ } y=\{y\ }".
27352735 * Backslash escapes are skipped.
27362736 *)
27372737let extract_fmt_vars (loc : Loc.t ) (fmt : string ) : string list =
Original file line number Diff line number Diff line change @@ -158,10 +158,10 @@ val round_up_to_pow2 : int -> int
158158(* * Segments of parsed ASL format string *)
159159type fmt_segment =
160160 | Fmt_lit of string (* * Literal text *)
161- | Fmt_var of string (* * Variable from { } *)
161+ | Fmt_var of string (* * Variable from \{ \ } *)
162162
163163(* * Parse an ASL format string into segments.
164- Raises Failure if { has no matching }. *)
164+ Raises Failure if \ { has no matching \ }. *)
165165val parse_fmt_string : string -> fmt_segment list
166166
167167(* ***************************************************************
You can’t perform that action at this time.
0 commit comments