This commit is contained in:
Haoran Yi 2022-09-28 09:46:25 -05:00 committed by HaoranYi
parent 4d02292931
commit 5b4a669e5f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ impl<T> StakeAccount<T> {
impl StakeAccount<Delegation> {
#[inline]
pub(crate) fn delegation(&self) -> Delegation {
// Safe to unwrap here becasue StakeAccount<Delegation> will always
// Safe to unwrap here because StakeAccount<Delegation> will always
// only wrap a stake-state which is a delegation.
self.stake_state.delegation().unwrap()
}