-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
fix a bug in shootout-reverse-complement, official tests should pass with it #12765
fix a bug in shootout-reverse-complement, official tests should pass with it #12765
Conversation
It's not entirely clear what's being fixed here to me. Could you update the commit message to be more descriptive about what bug is being fixed and why? |
Complement of the commit message added:
OK? |
( |
oops, I correct that (I always mix odd and even...) |
s/even/odd/ done. |
Feel free to add |
…with it In the "reverse-complement" loop, if there is an odd number of element, we forget to complement the element in the middle. For example, if the input is "ggg", the result before the fix is "CgC" instead of "CCC". This is because of this bug that the official shootout says that the rust version is in "Bad Output". This commit should fix this error.
|
fix: Fix imports being inserted before doc comments in inline modules Fixes rust-lang/rust-analyzer#12758
Add new lint `while_float` This PR adds a nursery lint that checks for while loops comparing floating point values. changelog: ``` changelog: [`while_float`]: Checks for while loops comparing floating point values. ``` Fixes rust-lang#758
No description provided.