Skip to content

Commit

Permalink
Rename the default argument 'def' to 'default'
Browse files Browse the repository at this point in the history
Fixes: #65492
  • Loading branch information
dsincl12 committed Oct 20, 2019
1 parent 89e645a commit 2a5c31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ impl<T> Option<T> {
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn unwrap_or(self, def: T) -> T {
pub fn unwrap_or(self, default: T) -> T {
match self {
Some(x) => x,
None => def,
None => default,
}
}

Expand Down

0 comments on commit 2a5c31c

Please sign in to comment.