| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005565 | OCaml | OCaml documentation | public | 2012-03-28 12:07 | 2012-09-21 14:10 |
|
| Reporter | gasche | |
| Assigned To | | |
| Priority | normal | Severity | text | Reproducibility | N/A |
| Status | acknowledged | Resolution | open | |
| Platform | | OS | | OS Version | |
| Product Version | | |
| Target Version | 4.00.2+dev | Fixed in Version | | |
|
| Summary | 0005565: Typing errors in the examples of the "Format mini-guide" on the website |
| Description | Eugen Zalinescu reported on the beginner's list that the "Format mini-guide" contains stale code using (Format.printf "%a") that does not type anymore.
format guide: http://caml.inria.fr/resources/doc/guides/format.en.html [^]
list discussion: http://tech.groups.yahoo.com/group/ocaml_beginners/message/13423 [^]
The problem is that `Format.printf "%a"` takes a formatter-parametrized (formatter -> 'a -> unit) argument, rather than simply ('a -> unit) as this mini-guide assumes.
I believe the easiest fix would be to remove this "using printf" section entirely, as the following "using fprintf" section provides the same information. |
| Tags | No tags attached. |
|
| Attached Files | |
|