- Notifications
You must be signed in to change notification settings - Fork11k
Improve from_into.rs#2282
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I failed these tests initially, but when I looked at them, I realized that a reasonable interpretation of the instructions would produce different results. Specifically, the tests The reason my brain immediately jumped to this incorrect conclusion is that the context makes it clear that, in such a case, it's possilbe the rest of the information is valid--so why throw away valid information? I don't think the tests or instructions arewrong, only that they could be clearer (or better). For reference, here is what my initial implementation looked like: |
BetaWas this translation helpful?Give feedback.