We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdce433 commit 9bc0745Copy full SHA for 9bc0745
exercises/practice/all-your-base/.meta/example.rs
@@ -36,7 +36,7 @@ pub enum Error {
36
/// Notes:
37
/// * The empty slice ( "[]" ) is equal to the number 0.
38
/// * Never output leading 0 digits. However, your function must be able to
39
-/// process input with leading 0 digits.
+/// process input with leading 0 digits.
40
///
41
pub fn convert<P: AsRef<[Digit]>>(
42
digits: P,
exercises/practice/dominoes/.meta/example.rs
@@ -1,5 +1,3 @@
1
-use std::iter;
2
-
3
pub type Domino = (u8, u8);
4
5
/// A table keeping track of available dominoes.
@@ -14,7 +12,7 @@ struct AvailabilityTable {
14
12
impl AvailabilityTable {
15
13
fn new() -> AvailabilityTable {
16
AvailabilityTable {
17
- m: iter::repeat(0).take(6 * 6).collect(),
+ m: std::iter::repeat_n(0, 6 * 6).collect(),
18
}
19
20
0 commit comments