mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
signal: fix typo in argument name (#6389)
This commit is contained in:
@@ -15,8 +15,8 @@ pub struct SignalStream {
|
||||
|
||||
impl SignalStream {
|
||||
/// Create a new `SignalStream`.
|
||||
pub fn new(interval: Signal) -> Self {
|
||||
Self { inner: interval }
|
||||
pub fn new(signal: Signal) -> Self {
|
||||
Self { inner: signal }
|
||||
}
|
||||
|
||||
/// Get back the inner `Signal`.
|
||||
|
||||
Reference in New Issue
Block a user