Skip to content

Commit 4a0e6ec

Browse files
Lutziferaschuch
authored andcommitted
fix typos using misspell
1 parent 4b0aed5 commit 4a0e6ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In a networked application a view controller or custom view typically has the fo
1616
* **Loading**: The content is currently loaded over the network.
1717
* **Content**: The content is available and presented to the user.
1818
* **Empty**: There is currently no content available to display.
19-
* **Error**: An error occured whilst downloading content.
19+
* **Error**: An error occurred whilst downloading content.
2020

2121
As trivial as this flow may sound, there are a lot of cases that result in a rather large decision tree.
2222

StatefulViewController/StatefulViewController.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ public protocol StatefulViewController: class, BackingViewProvider {
5757
func startLoading(animated: Bool, completion: (() -> Void)?)
5858

5959
/// 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.
6161
/// If the `hasContent` method returns false after calling this method, the empty view is shown.
6262
///
6363
/// - 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
6565
func endLoading(animated: Bool, error: Error?, completion: (() -> Void)?)
6666

6767
/// Transitions the view to the appropriate state based on the `loading` and `error`
6868
/// input parameters and shows/hides corresponding placeholder views.
6969
///
7070
/// - 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
7272
/// - parameter animated: true if the switch to the placeholder view should be animated, false otherwise
7373
func transitionViewStates(loading: Bool, error: Error?, animated: Bool, completion: (() -> Void)?)
7474

@@ -80,10 +80,10 @@ public protocol StatefulViewController: class, BackingViewProvider {
8080
/// - returns: true if there is content available in your controller.
8181
func hasContent() -> Bool
8282

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.
8484
/// You would typically display an unobstrusive error message that is easily dismissable
8585
/// for the user to continue browsing content.
8686
///
87-
/// - parameter error: The error that occured
87+
/// - parameter error: The error that occurred
8888
func handleErrorWhenContentAvailable(_ error: Error)
8989
}

0 commit comments

Comments
 (0)