Skip to content

Commit 8dcecdb

Browse files
author
H4x5
authored
Change the parameter name of From::from to value
1 parent 33d3519 commit 8dcecdb

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/convert

1 file changed

+1
-1
lines changed

library/core/src/convert/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub trait From<T>: Sized {
376376
#[lang = "from"]
377377
#[must_use]
378378
#[stable(feature = "rust1", since = "1.0.0")]
379-
fn from(_: T) -> Self;
379+
fn from(value: T) -> Self;
380380
}
381381

382382
/// An attempted conversion that consumes `self`, which may or may not be

0 commit comments

Comments
 (0)