mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-08-14 14:26:56 +00:00
Clarify Append command description in quiz2
This commit is contained in:
parent
925321705e
commit
b61baff1fc
@ -10,7 +10,7 @@
|
|||||||
// is going to be applied to the string. It can either be:
|
// is going to be applied to the string. It can either be:
|
||||||
// - Uppercase the string
|
// - Uppercase the string
|
||||||
// - Trim the string
|
// - Trim the string
|
||||||
// - Append "bar" to the string a specified amount of times
|
// - Append "bar" to the end of the string a specified amount of times
|
||||||
//
|
//
|
||||||
// The exact form of this will be:
|
// The exact form of this will be:
|
||||||
// - The input is going to be a Vector of 2-length tuples,
|
// - The input is going to be a Vector of 2-length tuples,
|
||||||
@ -48,6 +48,7 @@ mod tests {
|
|||||||
("foo".to_string(), Command::Append(1)),
|
("foo".to_string(), Command::Append(1)),
|
||||||
("bar".to_string(), Command::Append(5)),
|
("bar".to_string(), Command::Append(5)),
|
||||||
];
|
];
|
||||||
|
|
||||||
let output = transformer(input);
|
let output = transformer(input);
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@ -60,4 +61,4 @@ mod tests {
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user