Keep naming consistent.

This commit is contained in:
Gav
2018-01-28 20:57:50 +01:00
parent baa1d76323
commit a4e7f17a19
5 changed files with 1 additions and 1 deletions
@@ -68,7 +68,7 @@ pub fn take<T: Slicable + Sized>(key: &[u8]) -> Option<T> {
/// Remove `key` from storage, returning its value, or, if there was no explicit entry in storage,
/// the default for its type.
pub fn take_default<T: Slicable + Sized + Default>(key: &[u8]) -> T {
pub fn take_or_default<T: Slicable + Sized + Default>(key: &[u8]) -> T {
take(key).unwrap_or_else(Default::default)
}