Skip to content

Commit

Permalink
Add Changes entry and update Printf doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed May 29, 2018
1 parent 92748ee commit 3a97858
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -19,6 +19,10 @@ Working version
Unix.open_process{,_in,_out,_full}, but passing an explicit argv array.
(Nicolás Ojeda Bär, review by Jérémie Dimino, request by Volker Diels-Grabsch)

- GPR#1182: Add new Printf formats %#d %#Ld %#ld %#nd (idem for %i and %u) for
alternative integer formatting.
(ygrek, review by Gabriel Scherer)

### Other libraries:

### Compiler user-interface and warnings:
Expand Down
6 changes: 3 additions & 3 deletions stdlib/printf.mli
Expand Up @@ -100,9 +100,9 @@ val fprintf : out_channel -> ('a, out_channel, unit) format -> 'a
sign if positive.
- space: for signed numerical conversions, prefix number with a
space if positive.
- [#]: request an alternate formatting style for the hexadecimal
and octal integer types ([x], [X], [o], [lx], [lX], [lo], [Lx],
[LX], [Lo]).
- [#]: request an alternate formatting style for the integer types
([x], [X], [o], [lx], [lX], [lo], [Lx], [LX], [Lo], [d], [i], [u],
[ld], [li], [lu], [Ld], [Li], [Lu], [nd], [ni], [nu]).
The optional [width] is an integer indicating the minimal
width of the result. For instance, [%6d] prints an integer,
Expand Down

0 comments on commit 3a97858

Please sign in to comment.