We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a58b87a commit ccded19Copy full SHA for ccded19
src/lib.rs
@@ -229,10 +229,10 @@ impl FQRec {
229
230
// Set cursor just at the end of the read name (first
231
// space/tab/newline)
232
- let mut cursor = self.n
233
- + match &buf[self.n..self.r].iter().position(|&x| x == b' ') {
234
- Some(x) => x,
235
- _ => &self.r,
+ let mut cursor =
+ match &buf[self.n..(self.r - 1)].iter().position(|&x| x == b' ') {
+ Some(x) => x + self.n,
+ _ => self.r - 1,
236
};
237
unsafe {
238
*b.add(cursor) = b'\n';
0 commit comments