You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in code/ch7/ch7-actionkv1/src/lib.rs line 196..=198:
let next_byte = SeekFrom::End(0);
let current_position = f.seek(SeekFrom::Current(0))?;
f.seek(next_byte)?;
current_position does not necessarily reflects the end of the file, but a new record should always go to the end.
so, shouldn't it be just simple a one line:
let current_position = f.seek(SeekFrom::End(0))?;
Thanks for clarification
Jens
The text was updated successfully, but these errors were encountered:
Hi Tim,
in code/ch7/ch7-actionkv1/src/lib.rs line 196..=198:
let next_byte = SeekFrom::End(0);
let current_position = f.seek(SeekFrom::Current(0))?;
f.seek(next_byte)?;
current_position does not necessarily reflects the end of the file, but a new record should always go to the end.
so, shouldn't it be just simple a one line:
let current_position = f.seek(SeekFrom::End(0))?;
Thanks for clarification
Jens
The text was updated successfully, but these errors were encountered: