@@ -167,7 +167,7 @@ const BASE_CELL: BaseCell = BaseCell::new_unchecked(2);
167
167
/// - `C` are cells, coded on 3 bits each, with either a value in [0; 6] or the
168
168
/// pattern `0b111` if unused.
169
169
///
170
- /// Refrences :
170
+ /// References :
171
171
/// - [H3 Index Representations](https://h3geo.org/docs/core-library/h3Indexing)
172
172
/// - [H3 Index Bit Layout](https://observablehq.com/@nrabinowitz/h3-index-bit-layout?collection=@nrabinowitz/h3)
173
173
/// - [H3 Index Inspector](https://observablehq.com/@nrabinowitz/h3-index-inspector?collection=@nrabinowitz/h3)
@@ -884,7 +884,7 @@ impl CellIndex {
884
884
where
885
885
T : FromIterator < ( Self , u32 ) > ,
886
886
{
887
- // Optimistically try the faster faillible algorithm first.
887
+ // Optimistically try the faster fallible algorithm first.
888
888
// If it fails, fall back to the slower always correct one.
889
889
self . grid_disk_distances_fast ( k)
890
890
. collect :: < Option < T > > ( )
@@ -1313,7 +1313,7 @@ impl CellIndex {
1313
1313
} else {
1314
1314
dir = origin_base_cell. direction ( base_cell) . ok_or_else ( || {
1315
1315
HexGridError :: new (
1316
- "cannot unfold (base cells are not neighnors )" ,
1316
+ "cannot unfold (base cells are not neighbors )" ,
1317
1317
)
1318
1318
} ) ?;
1319
1319
base_cell
@@ -1545,7 +1545,7 @@ impl TryFrom<u64> for CellIndex {
1545
1545
// Basically a simpler/faster version of `h3IsValid`.
1546
1546
//
1547
1547
// Simpler because here we focus only on the trailing 56-bit part.
1548
- // Faster because no loops, just plain ol' bitwise operationss :)
1548
+ // Faster because no loops, just plain ol' bitwise operations :)
1549
1549
fn try_from ( value : u64 ) -> Result < Self , Self :: Error > {
1550
1550
if ( value >> 56 ) & 0b1000_0111 != 0 {
1551
1551
return Err ( Self :: Error :: new ( Some ( value) , "tainted reserved bits" ) ) ;
0 commit comments