-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
fmt: unexpected newline error #10853
Comments
I think this behavior is correct. if you run the program with go1.4.2, the result is the same:
|
Working as intended. The first call to Fscanf reads the '1'. The second call expects another integer but instead encounters a newline. It's not well explained in the documentation (and that will be addressed, so I'm leaving this bug open for now), but if there is no newline in the pattern, scanning stops at a newline. |
Duplicate of #9459 |
It's not exactly duplicate of #9459 Explicitly mentioning about behaviour being different than corresponding C routines well explains it in documentation - CL10779. |
The following program crashes with panic:
on commit b83b011
The text was updated successfully, but these errors were encountered: