Skip to content

Commit 8ea04f8

Browse files
committed
Fix make doc: escape uses of { and }
1 parent 85a79af commit 8ea04f8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libISA/tcheck.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
*)
27372737
let extract_fmt_vars (loc : Loc.t) (fmt : string) : string list =

libISA/utils.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ val round_up_to_pow2 : int -> int
158158
(** Segments of parsed ASL format string *)
159159
type 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 \}. *)
165165
val parse_fmt_string : string -> fmt_segment list
166166

167167
(****************************************************************

0 commit comments

Comments
 (0)