@@ -57,7 +57,7 @@ pub enum SnapshotError {
5757 InvalidFormatVersion ( Version ) ,
5858 /// Magic value does not match arch: {0}
5959 InvalidMagic ( u64 ) ,
60- /// An error occured during bitcode serialization: {0}
60+ /// An error occurred during bitcode serialization: {0}
6161 Bitcode ( #[ from] bitcode:: Error ) ,
6262 /// IO Error: {0}
6363 Io ( #[ from] std:: io:: Error ) ,
@@ -206,7 +206,7 @@ impl<Data: DeserializeOwned> Snapshot<Data> {
206206 let computed_checksum = crc64 ( 0 , buf. as_slice ( ) ) ;
207207 // When we read the entire file, we also read the checksum into the buffer. The CRC has the
208208 // property that crc(0, buf.as_slice()) == 0 iff the last 8 bytes of buf are the checksum
209- // of all the preceeding bytes, and this is the property we are using here.
209+ // of all the preceding bytes, and this is the property we are using here.
210210 if computed_checksum != 0 {
211211 return Err ( SnapshotError :: Crc64 ) ;
212212 }
@@ -251,9 +251,6 @@ mod tests {
251251 let mut snapshot_data = Vec :: new ( ) ;
252252 snapshot. save ( & mut snapshot_data) . unwrap ( ) ;
253253
254- // Debug: print the length to understand what's happening
255- println ! ( "Snapshot data length: {}" , snapshot_data. len( ) ) ;
256-
257254 assert_eq ! (
258255 get_format_version( & mut std:: io:: Cursor :: new( & snapshot_data) ) . unwrap( ) ,
259256 SNAPSHOT_VERSION
0 commit comments