diff --git a/README.md b/README.md index 3f307bc..f2c39ae 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ func useEffect(_ updateStrategy: HookUpdateStrategy? = nil, _ effect: @escaping A hook to use a side effect function that is called the number of times according to the strategy specified with `updateStrategy`. Optionally the function can be cancelled when this hook is disposed or when the side-effect function is called again. -Note that the execution is deferred until after ohter hooks have been updated. +Note that the execution is deferred until after other hooks have been updated. ```swift useEffect { diff --git a/Sources/Hooks/Hook/UseEffect.swift b/Sources/Hooks/Hook/UseEffect.swift index 188ebb9..18f80a9 100644 --- a/Sources/Hooks/Hook/UseEffect.swift +++ b/Sources/Hooks/Hook/UseEffect.swift @@ -1,6 +1,6 @@ /// A hook to use a side effect function that is called the number of times according to the strategy specified with `updateStrategy`. /// Optionally the function can be cancelled when this hook is disposed or when the side-effect function is called again. -/// Note that the execution is deferred until after ohter hooks have been updated. +/// Note that the execution is deferred until after other hooks have been updated. /// /// useEffect { /// print("Do side effects")