From dc4c415571c7ffdf88223e9ae9844e12b384814f Mon Sep 17 00:00:00 2001 From: MalikIdreesHasa <77000356+MalikIdreesHasanKhan@users.noreply.github.com> Date: Sat, 23 Oct 2021 10:28:18 +0000 Subject: [PATCH] Fixed typos --- docs/performance/reduce-reconciliation.md | 2 +- mkdocs.yml | 2 +- src/createElement.lua | 2 +- src/createElement.spec.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/performance/reduce-reconciliation.md b/docs/performance/reduce-reconciliation.md index 9c89ae3f..8ece729f 100644 --- a/docs/performance/reduce-reconciliation.md +++ b/docs/performance/reduce-reconciliation.md @@ -1,4 +1,4 @@ -In all likelihood, the primary source of performance gains for your app will come from reducing the amount of work that Roact's reconcilation process requires. This is accomplished by: +In all likelihood, the primary source of performance gains for your app will come from reducing the amount of work that Roact's reconciliation process requires. This is accomplished by: * Indicating to Roact that some reconciliation work can be skipped * Making sure your elements only change in ways you intended diff --git a/mkdocs.yml b/mkdocs.yml index aa7cef7f..30ebd2cc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -26,7 +26,7 @@ nav: - Context: advanced/context.md - Performance Optimization: - Overview: performance/overview.md - - Reduce Reconcilation: performance/reduce-reconciliation.md + - Reduce Reconciliation: performance/reduce-reconciliation.md - API Reference: api-reference.md extra_css: diff --git a/src/createElement.lua b/src/createElement.lua index b3cece14..4fd6fe5a 100644 --- a/src/createElement.lua +++ b/src/createElement.lua @@ -6,7 +6,7 @@ local Type = require(script.Parent.Type) local config = require(script.Parent.GlobalConfig).get() local multipleChildrenMessage = [[ -The prop `Roact.Children` was defined but was overriden by the third parameter to createElement! +The prop `Roact.Children` was defined but was overridden by the third parameter to createElement! This can happen when a component passes props through to a child element but also uses the `children` argument: Roact.createElement("Frame", passedProps, { diff --git a/src/createElement.spec.lua b/src/createElement.spec.lua index f6ed6a9d..00dd8b69 100644 --- a/src/createElement.spec.lua +++ b/src/createElement.spec.lua @@ -81,7 +81,7 @@ return function() it("should warn once if children is specified in two different ways", function() local logInfo = Logging.capture(function() - -- Using a loop here to ensure that multiple occurences of the same + -- Using a loop here to ensure that multiple occurrences of the same -- warning only cause output once. for _ = 1, 2 do createElement("Frame", {