@@ -57,18 +57,18 @@ public protocol StatefulViewController: class, BackingViewProvider {
57
57
func startLoading( animated: Bool , completion: ( ( ) -> Void ) ? )
58
58
59
59
/// Ends the controller's loading state.
60
- /// If an error occured , the error view is shown.
60
+ /// If an error occurred , the error view is shown.
61
61
/// If the `hasContent` method returns false after calling this method, the empty view is shown.
62
62
///
63
63
/// - parameter animated: true if the switch to the placeholder view should be animated, false otherwise
64
- /// - parameter error: An error that might have occured whilst loading
64
+ /// - parameter error: An error that might have occurred whilst loading
65
65
func endLoading( animated: Bool , error: Error ? , completion: ( ( ) -> Void ) ? )
66
66
67
67
/// Transitions the view to the appropriate state based on the `loading` and `error`
68
68
/// input parameters and shows/hides corresponding placeholder views.
69
69
///
70
70
/// - parameter loading: true if the controller is currently loading
71
- /// - parameter error: An error that might have occured whilst loading
71
+ /// - parameter error: An error that might have occurred whilst loading
72
72
/// - parameter animated: true if the switch to the placeholder view should be animated, false otherwise
73
73
func transitionViewStates( loading: Bool , error: Error ? , animated: Bool , completion: ( ( ) -> Void ) ? )
74
74
@@ -80,10 +80,10 @@ public protocol StatefulViewController: class, BackingViewProvider {
80
80
/// - returns: true if there is content available in your controller.
81
81
func hasContent( ) -> Bool
82
82
83
- /// This method is called if an error occured , but `hasContent` returned true.
83
+ /// This method is called if an error occurred , but `hasContent` returned true.
84
84
/// You would typically display an unobstrusive error message that is easily dismissable
85
85
/// for the user to continue browsing content.
86
86
///
87
- /// - parameter error: The error that occured
87
+ /// - parameter error: The error that occurred
88
88
func handleErrorWhenContentAvailable( _ error: Error )
89
89
}
0 commit comments