We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9c1fa commit bd5f5f2Copy full SHA for bd5f5f2
src/bin/render-readmes.rs
@@ -106,13 +106,16 @@ fn main() {
106
total_pages + 1
107
};
108
109
- let mut page_num = 0;
110
-
111
- for version_ids_chunk in &version_ids.into_iter().chunks(page_size) {
112
- page_num += 1;
+ for (page_num, version_ids_chunk) in
+ version_ids
+ .into_iter()
+ .chunks(page_size)
113
114
+ .enumerate()
115
+ {
116
println!(
117
"= Page {} of {} ==================================",
- page_num,
118
+ page_num + 1,
119
total_pages
120
);
121
0 commit comments