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
The comment for fmt.Fscan says:
It returns the number of items successfully scanned. If that is less than the number of
arguments, err will report why.
But fmt.Fscanf only says:
It returns the number of items successfully parsed.
From reading the source, it seems that the formatted variants are also intended to
return a non-nil error for short scans:
http://play.golang.org/p/aS0XEsQLWp
If so, the documentation should be made consistent to reflect this.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: