Skip to content

Commit c38187d

Browse files
boondocklabsusbalbin
authored andcommitted
Use debug format string in rand example
1 parent 892abda commit c38187d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rand.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() -> ! {
5858
info!("Random u8: {}", random_u8);
5959

6060
let random_array: [f32; 8] = rng.unwrap_err().random();
61-
info!("Random array {}", &random_array);
61+
info!("Random array {:?}", &random_array);
6262

6363
let random_dist = between.sample(&mut rng.unwrap_err());
6464
info!("Random dist: {}", random_dist);
@@ -67,7 +67,7 @@ fn main() -> ! {
6767
info!("Random range: {}", random_range);
6868

6969
let random_choice = slice.choose(&mut rng.unwrap_err());
70-
info!("Random choice: {}", random_choice);
70+
info!("Random choice: {:?}", random_choice);
7171

7272
let random_bernoulli = bernoulli.sample(&mut rng.unwrap_err());
7373
info!("Random bernoulli: {}", random_bernoulli);

0 commit comments

Comments
 (0)