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

Scanf documentation #3157

Closed
vicuna opened this issue Sep 7, 2004 · 1 comment
Closed

Scanf documentation #3157

vicuna opened this issue Sep 7, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 7, 2004

Original bug ID: 3157
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Virgile Prevosto
Version: 3.08.1
OS:
Submission from: p213.54.161.216.tisdip.tiscali.de (213.54.161.216)

The documentation of the Scanf module seems to be misleading regarding the
syntax for scanning a range of characters. Specifically, the sentence "Hence,
['0'-'9'] returns a string representing a decimal number or an empty string"
should be "Hence, [0-9] returns a string...", without single quotes around the
characters. The former pattern seems to match only strings composed of the three
characters 0, ' and 9.

Virgile

@vicuna
Copy link
Author

vicuna commented Sep 9, 2004

Comment author: administrator

Full_Name: Virgile Prevosto
Version: 3.08.1
OS:
Submission from: p213.54.161.216.tisdip.tiscali.de (213.54.161.216)

The documentation of the Scanf module seems to be misleading regarding the
syntax for scanning a range of characters. Specifically, the sentence "Hence,
['0'-'9'] returns a string representing a decimal number or an empty string"
should be "Hence, [0-9] returns a string...", without single quotes around the
characters. The former pattern seems to match only strings composed of the three
characters 0, ' and 9.

Virgile

You're perfectly right, thanks for the bug report. This is now corrected
in the working sources.

--
Pierre Weis

INRIA, Projet Cristal, http://pauillac.inria.fr/~weis

@vicuna vicuna closed this as completed Oct 6, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant