Skip to content

Commit 75a9c86

Browse files
committed
unicode-table-generator: sync comments
These comments were updated on master but not through this tool, so the comments in the tool became outdated. Sync the comments to stay consistent.
1 parent 3748c5e commit 75a9c86

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/unicode-table-generator/src/range_search.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ const fn bitset_search<
1616
let bucket_idx = (needle / 64) as usize;
1717
let chunk_map_idx = bucket_idx / CHUNK_SIZE;
1818
let chunk_piece = bucket_idx % CHUNK_SIZE;
19-
// FIXME: const-hack: Revert to `slice::get` after `const_slice_index`
20-
// feature stabilizes.
19+
// FIXME(const-hack): Revert to `slice::get` when slice indexing becomes possible in const.
2120
let chunk_idx = if chunk_map_idx < chunk_idx_map.len() {
2221
chunk_idx_map[chunk_map_idx]
2322
} else {
2423
return false;
2524
};
2625
let idx = bitset_chunk_idx[chunk_idx as usize][chunk_piece] as usize;
27-
// FIXME: const-hack: Revert to `slice::get` after `const_slice_index`
28-
// feature stabilizes.
26+
// FIXME(const-hack): Revert to `slice::get` when slice indexing becomes possible in const.
2927
let word = if idx < bitset_canonical.len() {
3028
bitset_canonical[idx]
3129
} else {

0 commit comments

Comments
 (0)