Skip to content

Commit

Permalink
Merge pull request #2441 from damoasda/listing-10-05-fix
Browse files Browse the repository at this point in the history
Fix type mismatch in listing 10-5
  • Loading branch information
steveklabnik committed Aug 31, 2020
2 parents 7931236 + a4780b9 commit e5ed971
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn largest<T>(list: &[T]) -> &T {
let mut largest = list[0];
let mut largest = &list[0];

for item in list {
if item > largest {
Expand Down

0 comments on commit e5ed971

Please sign in to comment.