@@ -910,7 +910,7 @@ impl<T, A: Allocator> RawTable<T, A> {
910
910
& self . alloc
911
911
}
912
912
913
- /// Returns pointer to one past last `data` element in the the table as viewed from
913
+ /// Returns pointer to one past last `data` element in the table as viewed from
914
914
/// the start point of the allocation.
915
915
///
916
916
/// The caller must ensure that the `RawTable` outlives the returned [`NonNull<T>`],
@@ -2027,7 +2027,7 @@ impl RawTableInner {
2027
2027
/// if this function returns an `index` it will be in the range `0..=self.buckets()`.
2028
2028
///
2029
2029
/// This function does not make any changes to the `data` parts of the table,
2030
- /// or any changes to the the `items` or `growth_left` field of the table.
2030
+ /// or any changes to the `items` or `growth_left` field of the table.
2031
2031
///
2032
2032
/// # Safety
2033
2033
///
@@ -2211,7 +2211,7 @@ impl RawTableInner {
2211
2211
/// - `FULL` control bytes -> `DELETED`.
2212
2212
///
2213
2213
/// This function does not make any changes to the `data` parts of the table,
2214
- /// or any changes to the the `items` or `growth_left` field of the table.
2214
+ /// or any changes to the `items` or `growth_left` field of the table.
2215
2215
///
2216
2216
/// # Safety
2217
2217
///
@@ -2556,7 +2556,7 @@ impl RawTableInner {
2556
2556
base. sub ( ( index + 1 ) * size_of)
2557
2557
}
2558
2558
2559
- /// Returns pointer to one past last `data` element in the the table as viewed from
2559
+ /// Returns pointer to one past last `data` element in the table as viewed from
2560
2560
/// the start point of the allocation (convenience for `self.ctrl.cast()`).
2561
2561
///
2562
2562
/// This function actually returns a pointer to the end of the `data element` at
@@ -2645,7 +2645,7 @@ impl RawTableInner {
2645
2645
/// the end of the array.
2646
2646
///
2647
2647
/// This function does not make any changes to the `data` parts of the table,
2648
- /// or any changes to the the `items` or `growth_left` field of the table.
2648
+ /// or any changes to the `items` or `growth_left` field of the table.
2649
2649
///
2650
2650
/// # Safety
2651
2651
///
@@ -2679,7 +2679,7 @@ impl RawTableInner {
2679
2679
/// bytes, returning the old control byte.
2680
2680
///
2681
2681
/// This function does not make any changes to the `data` parts of the table,
2682
- /// or any changes to the the `items` or `growth_left` field of the table.
2682
+ /// or any changes to the `items` or `growth_left` field of the table.
2683
2683
///
2684
2684
/// # Safety
2685
2685
///
@@ -2714,7 +2714,7 @@ impl RawTableInner {
2714
2714
/// the end of the array.
2715
2715
///
2716
2716
/// This function does not make any changes to the `data` parts of the table,
2717
- /// or any changes to the the `items` or `growth_left` field of the table.
2717
+ /// or any changes to the `items` or `growth_left` field of the table.
2718
2718
///
2719
2719
/// # Safety
2720
2720
///
@@ -3896,10 +3896,10 @@ impl<T> RawIterRange<T> {
3896
3896
// we will never end up in the given branch, since we should have already
3897
3897
// yielded all the elements of the table.
3898
3898
//
3899
- // 2. For tables larger than the group width. The the number of buckets is a
3900
- // power of two (2 ^ n), Group::WIDTH is also power of two (2 ^ k). Sinse
3899
+ // 2. For tables larger than the group width. The number of buckets is a
3900
+ // power of two (2 ^ n), Group::WIDTH is also power of two (2 ^ k). Since
3901
3901
// `(2 ^ n) > (2 ^ k)`, than `(2 ^ n) % (2 ^ k) = 0`. As we start from the
3902
- // the start of the array of control bytes, and never try to iterate after
3902
+ // start of the array of control bytes, and never try to iterate after
3903
3903
// getting all the elements, the last `self.current_group` will read bytes
3904
3904
// from the `self.buckets() - Group::WIDTH` index. We know also that
3905
3905
// `self.current_group.next()` will always retun indices within the range
@@ -4219,8 +4219,8 @@ impl FullBucketsIndices {
4219
4219
// we will never end up in the given branch, since we should have already
4220
4220
// yielded all the elements of the table.
4221
4221
//
4222
- // 2. For tables larger than the group width. The the number of buckets is a
4223
- // power of two (2 ^ n), Group::WIDTH is also power of two (2 ^ k). Sinse
4222
+ // 2. For tables larger than the group width. The number of buckets is a
4223
+ // power of two (2 ^ n), Group::WIDTH is also power of two (2 ^ k). Since
4224
4224
// `(2 ^ n) > (2 ^ k)`, than `(2 ^ n) % (2 ^ k) = 0`. As we start from the
4225
4225
// the start of the array of control bytes, and never try to iterate after
4226
4226
// getting all the elements, the last `self.ctrl` will be equal to
0 commit comments