Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Code Block with Blank Comment Lines Test (OCaml)

This test verifies that blank comment lines within code blocks don’t prematurely end the block in OCaml files.

Function with blank lines in comments

The following code has blank comment lines that should be preserved:

let calculate x y =
  let sum = x + y in

  let result = sum * 2 in
  result

Multiple functions with blank lines

let first () =
  let a = 1 in

  let b = 2 in
  a + b

let second () =
  let c = 3 in
  c