Skip to content

Commit 4861aba

Browse files
committed
unwrap: s/panic(/panic!(
1 parent 73140a4 commit 4861aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/post/unwrap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<T> Option<T> {
100100
pub fn unwrap(self) -> T {
101101
match self {
102102
Some(val) => val,
103-
None => panic("called `Option::unwrap()` on a `None` value"),
103+
None => panic!("called `Option::unwrap()` on a `None` value"),
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)