Skip to content

Commit e23843e

Browse files
authored
Minor tweaks to std traits slides (#2738)
1 parent b897e43 commit e23843e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/std-traits/default.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ minutes: 5
44

55
# The `Default` Trait
66

7-
[`Default`][1] trait produces a default value for a type.
7+
The [`Default`][1] trait produces a default value for a type.
88

99
```rust,editable
1010
#[derive(Debug, Default)]

src/std-traits/exercise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod test {
5353
#[test]
5454
fn binary() {
5555
let input: Vec<u8> = (0..=255u8).collect();
56-
let mut rot = RotDecoder::<&[u8]> { input: input.as_ref(), rot: 13 };
56+
let mut rot = RotDecoder::<&[u8]> { input: input.as_slice(), rot: 13 };
5757
let mut buf = [0u8; 256];
5858
assert_eq!(rot.read(&mut buf).unwrap(), 256);
5959
for i in 0..=255 {

0 commit comments

Comments
 (0)