Rollup merge of #65638 - dsincl12:master, r=Centril
Rename the default argument 'def' to 'default' Fixes: #65492
This commit is contained in:
commit
5a29bd9f9b
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user