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

wrong exception thrown from String.index_from - off by one error? #2336

Closed
vicuna opened this issue Mar 11, 2004 · 1 comment
Closed

wrong exception thrown from String.index_from - off by one error? #2336

vicuna opened this issue Mar 11, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 11, 2004

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

Bug description

Full_Name: Charles Martin
Version: 3.07+13 (2004-01-04)
OS: Linux 2.4.22 i386 GNU/Linux
Submission from: 65.57.245.11 (65.57.245.11)

String.index_from "foo" 3 'd' raises Not_found
It should raise Invalid_argument

Looks like an off by one error?

@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

This is the intended behavior.

@vicuna vicuna closed this as completed Apr 1, 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