diff --git a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift similarity index 96% rename from RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift rename to RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift index a6e5894..54184ff 100644 --- a/RxStateExample/RxStateExample/StateManagment/ErrorStateManagment.swift +++ b/RxStateExample/RxStateExample/StateManagment/ErrorStateManagement.swift @@ -32,8 +32,8 @@ extension Store { case addSilentError(silentError: Error) } - static func reduce(state: Store.ErrorState, sction: Store.ErrorAction) -> Store.ErrorState { - switch sction { + static func reduce(state: Store.ErrorState, action: Store.ErrorAction) -> Store.ErrorState { + switch action { case let .addPresentError(error): var state = state state.presentableError = error