chore: clean up examples and fix link opening code

This commit is contained in:
Jonathan Kelley committed 2022-01-31 19:40:48 -05:00
1 parent cc99fa8eb2
commit 6905bf98d7
7 files changed
+28 -31

No files matched your search

+2 -2
View File
@@ -17,9 +17,9 @@ impl Label {
fn new_list(num: usize) -> Vec<Self> {
let mut rng = SmallRng::from_entropy();
let mut labels = Vec::with_capacity(num);
for _ in 0..num {
for x in 0..num {
labels.push(Label {
key: 0,
key: x,
labels: [
ADJECTIVES.choose(&mut rng).unwrap(),
COLOURS.choose(&mut rng).unwrap(),