Rollup merge of #65638 - dsincl12:master, r=Centril

Rename the default argument 'def' to 'default'

Fixes: #65492
This commit is contained in:
Mazdak Farrokhzad 2019-10-21 01:39:20 +02:00 committed by GitHub
commit 5a29bd9f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,10 +395,10 @@ pub fn unwrap(self) -> 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,
}
}