This repository was archived by the owner on Oct 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ fn subslice_to_range(full: &[u8], sub: &[u8]) -> Option<Range<usize>> {
48
48
sub. checked_sub ( full)
49
49
// not needed as it would divide by one: .map(|diff| diff / mem::size_of::<T>())
50
50
//
51
- // if there are two slices of a continious chunk, [A|B] we need to make sure B will not be
51
+ // if there are two slices of a continuous chunk, [A|B] we need to make sure B will not be
52
52
// calculated as subslice of A
53
53
. and_then ( |start| if start >= max { None } else { Some ( start) } )
54
54
. map ( |start| start..( start + amt) )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub struct FileAdder {
22
22
block_buffer : Vec < u8 > ,
23
23
// all unflushed links as a flat vec; this is compacted as we grow and need to create a link
24
24
// block for the last N blocks, as decided by the collector.
25
- // FIXME: this is a cause of likely "accidentially quadratic" behaviour visible when adding a
25
+ // FIXME: this is a cause of likely "accidentally quadratic" behavior visible when adding a
26
26
// large file and using a minimal chunk size. Could be that this must be moved to Collector to
27
27
// help collector (or layout) to decide how this should be persisted.
28
28
unflushed_links : Vec < Link > ,
@@ -109,7 +109,7 @@ impl fmt::Debug for Link {
109
109
}
110
110
}
111
111
112
- /// Convinience type to facilitate configuring [`FileAdder`]s.
112
+ /// Convenience type to facilitate configuring [`FileAdder`]s.
113
113
#[ derive( Default ) ]
114
114
pub struct FileAdderBuilder {
115
115
chunker : Chunker ,
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ impl InnerEntry {
407
407
self . depth = self
408
408
. depth
409
409
. checked_sub ( 1 )
410
- . expect ( "undeflowed path components" ) ;
410
+ . expect ( "underflowed path components" ) ;
411
411
}
412
412
413
413
self . path . push ( name) ;
@@ -474,7 +474,7 @@ impl InnerEntry {
474
474
self . depth = self
475
475
. depth
476
476
. checked_sub ( 1 )
477
- . expect ( "underlowed depth calculation during bucket->bucket" ) ;
477
+ . expect ( "underflowed depth calculation during bucket->bucket" ) ;
478
478
}
479
479
480
480
assert_eq ! ( self . depth, depth, "{:?}" , self . path) ;
You can’t perform that action at this time.
0 commit comments