Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing errors in the examples of the "Format mini-guide" on the website #5565

Closed
vicuna opened this issue Mar 28, 2012 · 1 comment
Closed

Comments

@vicuna
Copy link

vicuna commented Mar 28, 2012

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.

@vicuna
Copy link
Author

vicuna commented Aug 19, 2013

Comment author: @damiendoligez

Fixed as suggested.

@vicuna vicuna closed this as completed Dec 11, 2015
@vicuna vicuna added this to the 4.01.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant