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: 3992 Reporter:@Chris00 Assigned to:@pierreweis Status: closed (set by @damiendoligez on 2008-09-10T15:36:26Z) Resolution: fixed Priority: normal Severity: minor Version: 3.09.1 Fixed in version: 3.11+dev Category: ~DO NOT USE (was: OCaml general) Has duplicate:#4204#4290 Related to:#4321
Bug description
According to the documentation, Printf.sprintf "%1$i" should be the same as Printf.sprintf "%i" but instead gives:
Printf.sprintf "%1$i";;
Characters 15-21:
Printf.sprintf "%1$i";;
^^^^^^
Bad conversion %$, at char number 0 in format string ``%1$i''
The text was updated successfully, but these errors were encountered:
Indeed, the documentation is ahead from the typechecker's implementation.
A quick and easy fix is to change the documentation; a better fix would be to get the typechecker correct wrt the [printf] documentation.
I'll give a try to this last option.
Original bug ID: 3992
Reporter: @Chris00
Assigned to: @pierreweis
Status: closed (set by @damiendoligez on 2008-09-10T15:36:26Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.1
Fixed in version: 3.11+dev
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #4204 #4290
Related to: #4321
Bug description
According to the documentation, Printf.sprintf "%1$i" should be the same as Printf.sprintf "%i" but instead gives:
Printf.sprintf "%1$i";;
Characters 15-21:
Printf.sprintf "%1$i";;
^^^^^^
Bad conversion %$, at char number 0 in format string ``%1$i''
The text was updated successfully, but these errors were encountered: