Skip to content

Commit 10d5bf3

Browse files
committedSep 24, 2015
The proper way to escape @ in a format string is %@ not deprecated @@...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16442 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1 parent acd6067 commit 10d5bf3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎typing/primitive.ml

+2-3
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ let byte_name p =
128128
p.prim_name
129129

130130
let report_error ppf err =
131-
let open Format in
132131
match err with
133132
| Float_with_native_repr_attribute ->
134-
fprintf ppf "Cannot use \"float\" in conjunction with \
135-
[@@unboxed]/[@@untagged]"
133+
Format.fprintf ppf "Cannot use \"float\" in conjunction with \
134+
[%@unboxed]/[%@untagged]"
136135

137136
let () =
138137
Location.register_error_of_exn

0 commit comments

Comments
 (0)
Please sign in to comment.