summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/docs/tutorial/OCamlLangImpl2.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/docs/tutorial/OCamlLangImpl2.rst b/llvm/docs/tutorial/OCamlLangImpl2.rst
index 83a22ab22d4..905b306746f 100644
--- a/llvm/docs/tutorial/OCamlLangImpl2.rst
+++ b/llvm/docs/tutorial/OCamlLangImpl2.rst
@@ -339,6 +339,9 @@ expression:
(* Eat the binop. *)
Stream.junk stream;
+ (* Parse the primary expression after the binary operator *)
+ let rhs = parse_primary stream in
+
(* Okay, we know this is a binop. *)
let rhs =
match Stream.peek stream with
OpenPOWER on IntegriCloud