-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
sizefrom is not documented and error message is incorrect #76
Comments
Can you post a reproduction case? A struct with sizefrom in it that triggers that error message. |
Actually the issue I encountered was not because of sizefrom.
So I tried it in a test with something like
I wondered why struc reported such error as I have put sizeof in the tag.
If the README can be updated and error message is fixed, it will be clearer. |
There is a sizeof tag, but it goes on the size field and not on the array. Sizeof and Sizefrom are inverse of the same thing. |
Hi,
In one of the PR, sizefrom was added. However it is not mentioned in README at all.
And when I tried to use sizeof for slice without size, an incorrect message was reported, which is caused by this line.
The text was updated successfully, but these errors were encountered: