Skip to content

Commit 4f98dcf

Browse files
kianmengrmorshea
andauthored
Fix typos (#1007)
* Fix typos Found via: - `codespell -S package-lock.json -L inflight,ue,falsy` - `typos --format brief` * fix capitalization * fix capitalization * fix capitalization --------- Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
1 parent e950966 commit 4f98dcf

File tree

46 files changed

+77
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+77
-77
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
We provide two main ways to run the docs. Both use
44
[`nox`](https://pypi.org/project/nox/):
55

6-
- `nox -s docs` - displayes the docs and rebuilds when files are modified.
6+
- `nox -s docs` - displays the docs and rebuilds when files are modified.
77
- `nox -s docs-in-docker` - builds a docker image and runs the docs from there.
88

99
If any changes to the core of the documentation are made (i.e. to non-`*.rst` files),

docs/source/_custom_js/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function triggerIfInViewport(element, callback) {
8686
},
8787
{
8888
root: null,
89-
threshold: 0.1, // set offset 0.1 means trigger if atleast 10% of element in viewport
89+
threshold: 0.1, // set offset 0.1 means trigger if at least 10% of element in viewport
9090
},
9191
);
9292

docs/source/about/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ v1.0.0-a4
6262

6363
**Deprecated**
6464

65-
- :pull:`919` - Declaration of keys via keywork arguments in standard elements. A script
65+
- :pull:`919` - Declaration of keys via keyword arguments in standard elements. A script
6666
has been added to automatically convert old usages where possible.
6767

6868

@@ -590,7 +590,7 @@ v0.35.2
590590
This release includes several bug fixes. The most significant of which is the ability to
591591
change the type of an element in the try (i.e. to and from being a component) without
592592
getting an error. Originally the errors were introduced because it was though changing
593-
element type would not be desireable. This was not the case though - swapping types
593+
element type would not be desirable. This was not the case though - swapping types
594594
turns out to be quite common and useful.
595595

596596
**Closed Issues**

docs/source/guides/adding-interactivity/components-with-state/_examples/adding_state_variable/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"name": "Terracotta Army",
4646
"artist": "Unknown Artist",
47-
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consited of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
47+
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
4848
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg/1920px-2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg",
4949
"alt": "12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor."
5050
},

docs/source/guides/adding-interactivity/components-with-state/_examples/isolated_state/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"name": "Terracotta Army",
4646
"artist": "Unknown Artist",
47-
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consited of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
47+
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
4848
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg/1920px-2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg",
4949
"alt": "12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor."
5050
},

docs/source/guides/adding-interactivity/components-with-state/_examples/multiple_state_variables/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"name": "Terracotta Army",
4646
"artist": "Unknown Artist",
47-
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consited of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
47+
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
4848
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg/1920px-2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg",
4949
"alt": "12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor."
5050
},

docs/source/guides/adding-interactivity/components-with-state/_examples/when_variables_are_not_enough/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"name": "Terracotta Army",
4646
"artist": "Unknown Artist",
47-
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consited of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
47+
"description": "The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.",
4848
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg/1920px-2015-09-22-081415_-_Terrakotta-Armee%2C_Grosse_Halle.jpg",
4949
"alt": "12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor."
5050
},

docs/source/guides/adding-interactivity/dangers-of-mutability/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ Removing Set Items
531531
s.difference_update(values)
532532
s -= values # "in-place" operators mutate!
533533
534-
s.symetric_difference_update(values)
534+
s.symmetric_difference_update(values)
535535
s ^= values # "in-place" operators mutate!
536536
537537
s.intersection_update(values)
@@ -547,7 +547,7 @@ Removing Set Items
547547
s.difference(values)
548548
s - values
549549
550-
s.symetric_difference(values)
550+
s.symmetric_difference(values)
551551
s ^ values
552552
553553
s.intersection(values)

docs/source/guides/adding-interactivity/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Section 3: State as a Snapshot
111111
------------------------------
112112

113113
As we :ref:`learned earlier <Components with State>`, state setters behave a little
114-
differently than you might exepct at first glance. Instead of updating your current
114+
differently than you might expect at first glance. Instead of updating your current
115115
handle on the setter's corresponding variable, it schedules a re-render of the component
116116
which owns the state.
117117

@@ -133,7 +133,7 @@ actually sent?
133133
.. reactpy:: state-as-a-snapshot/_examples/print_chat_message
134134

135135
As it turns out, changing the message recipient after pressing send does not change
136-
where the message ulitmately goes. However, one could imagine a bug where the recipient
136+
where the message ultimately goes. However, one could imagine a bug where the recipient
137137
of a message is determined at the time the message is sent rather than at the time the
138138
"Send" button it clicked. Thus changing the recipient after pressing send would change
139139
where the message got sent.

docs/source/guides/adding-interactivity/multiple-state-updates/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Batched Updates
1010
---------------
1111

1212
As we learned :ref:`previously <state as a snapshot>`, state variables remain fixed
13-
inside each render as if state were a snapshot taken at the begining of each render.
13+
inside each render as if state were a snapshot taken at the beginning of each render.
1414
This is why, in the example below, even though it might seem like clicking the
1515
"Increment" button would cause the ``number`` to increase by ``3``, it only does by
1616
``1``:
@@ -22,7 +22,7 @@ the event handler is not an ``async`` function), ReactPy waits until all the cod
2222
event handler has run before processing state and starting the next render. Thus, it's
2323
the last call to a given state setter that matters. In the example below, even though we
2424
set the color of the button to ``"orange"`` and then ``"pink"`` before ``"blue"``,
25-
the color does not quickly flash orange and pink before blue - it alway remains blue:
25+
the color does not quickly flash orange and pink before blue - it always remains blue:
2626

2727
.. reactpy:: _examples/set_color_3_times
2828

0 commit comments

Comments
 (0)