realworldocaml / examples

All the examples in Real World OCaml
The Unlicense
376 stars 81 forks source link

Variants terminal color example partly missing #27

Open keleshev opened 9 years ago

keleshev commented 9 years ago

This example describes pattern-matching of polymorphic variant types with # prefix, however, the example does not show its usage anywhere:

screen shot 2015-01-04 at 01 22 28

keleshev commented 9 years ago

But the source file contains (what seems to be) the correct example: https://github.com/realworldocaml/examples/blob/master/code/variants-termcol-fixed/terminal_color.ml