Skip to content

Commit

Permalink
Rollup merge of rust-lang#65638 - dsincl12:master, r=Centril
Browse files Browse the repository at this point in the history
Rename the default argument 'def' to 'default'

Fixes: rust-lang#65492
  • Loading branch information
Centril authored Oct 20, 2019
2 parents 8bdae3a + 2a5c31c commit 5a29bd9
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 5a29bd9

Please sign in to comment.