chore: clean up examples and fix link opening code
This commit is contained in:
1 parent
cc99fa8eb2
commit
6905bf98d7
7 files changed
+28
-31
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user