You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5565 Reporter:@gasche Status: closed (set by @xavierleroy on 2015-12-11T18:23:53Z) Resolution: fixed Priority: normal Severity: text Target version: 4.01.0+dev Fixed in version: 4.01.0+dev Category: documentation Monitored by:@gasche@damiendoligez
Bug 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.
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.
The text was updated successfully, but these errors were encountered:
Original bug ID: 5565
Reporter: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:23:53Z)
Resolution: fixed
Priority: normal
Severity: text
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: documentation
Monitored by: @gasche @damiendoligez
Bug 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.
The text was updated successfully, but these errors were encountered: