-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Map() does not panic on zero-initialized value #9025
Labels
Comments
It returns a zero-initialized map which will panic after being used. Unless the comment says it panics right away, it's close to be true :) We may complicate the logic and make sure it panics right away, but I'm not sure it's worth it. Maybe just updating the comment is good enough. Something like
|
Agreed that updating the comment should be good enough 👍 |
mx-psi
pushed a commit
that referenced
this issue
Dec 5, 2023
pantuza
pushed a commit
to pantuza/opentelemetry-collector
that referenced
this issue
Dec 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The following code will not cause a panic:
although the doc states:
Steps to reproduce
What did you expect to see?
A Panic.
What did you see instead?
No Panic.
What version did you use?
The text was updated successfully, but these errors were encountered: