Skip to content

Commit 245bfed

Browse files
tchardingsanket1729
authored andcommitted
Use parameter 'translator'
This parameter is a translator trait object, use `translator` as the identifier instead of `translate`.
1 parent 2ffa5ea commit 245bfed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ where
457457
/// Translates a struct from one generic to another where the translation
458458
/// for Pk is provided by function `fpk`, and translation for PkH is
459459
/// provided by function `fpkh`.
460-
fn translate_pk<T, E>(&self, translate: &mut T) -> Result<Self::Output, E>
460+
fn translate_pk<T, E>(&self, translator: &mut T) -> Result<Self::Output, E>
461461
where
462462
T: Translator<P, Q, E>;
463463
}

0 commit comments

Comments
 (0)