Skip to content

Commit e37632d

Browse files
committed
Manual: improve [%extension_constructor] example
1 parent e2005f0 commit e37632d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manual/manual/refman/exten.etex

+4-1
Original file line numberDiff line numberDiff line change
@@ -1802,8 +1802,11 @@ type t = ..
18021802
type t += X of int | Y of string
18031803
let x = [%extension_constructor X]
18041804
let y = [%extension_constructor Y]
1805-
let () = assert (x <> y)
18061805
\end{verbatim}
1806+
\caml
1807+
\? x <> y;;
1808+
\:- : bool = true
1809+
\endcaml
18071810

18081811
\section{Quoted strings}\label{s:quoted-strings}
18091812

0 commit comments

Comments
 (0)