Skip to content

Commit 0886273

Browse files
committed
Fix few typos in React docs and comments
1 parent 410cc30 commit 0886273

File tree

15 files changed

+20
-20
lines changed

15 files changed

+20
-20
lines changed

docs/_posts/2013-10-3-community-roundup-9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The video will be available soon on the [JSConf EU website](http://2013.jsconf.e
5656

5757
[Todd Kennedy](http://blog.selfassembled.org/) working at [Condé Nast](http://www.condenast.com/) implemented a wrapper on-top of [JSHint](http://www.jshint.com/) that first converts JSX files to JS.
5858

59-
> A wrapper around JSHint to allow linting of files containg JSX syntax. Accepts glob patterns. Respects your local .jshintrc file and .gitignore to filter your glob patterns.
59+
> A wrapper around JSHint to allow linting of files containing JSX syntax. Accepts glob patterns. Respects your local .jshintrc file and .gitignore to filter your glob patterns.
6060
>
6161
> ```
6262
npm install -g jsxhint

docs/_posts/2014-01-06-community-roundup-14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ React is only one-piece of your web application stack. [Mark Lussier](https://gi
1313
>
1414
> I encourage you to fork, and make it right and submit a pull request!
1515
>
16-
> My current opinion is using tools like Grunt, Browserify, Bower and mutiple grunt plugins to get the job done. I also opted for Zepto over jQuery and the Flatiron Project's Director when I need a router. Oh and for the last little bit of tech that makes you mad, I am in the SASS camp when it comes to stylesheets
16+
> My current opinion is using tools like Grunt, Browserify, Bower and multiple grunt plugins to get the job done. I also opted for Zepto over jQuery and the Flatiron Project's Director when I need a router. Oh and for the last little bit of tech that makes you mad, I am in the SASS camp when it comes to stylesheets
1717
>
1818
> [Check it out on GitHub...](https://github.com/intabulas/reactjs-baseline)
1919

docs/_posts/2014-02-16-react-v0.9-rc1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ React.DOM.div(null,
4949
)
5050
```
5151

52-
We believe this new behavior is more helpful and elimates cases where unwanted whitespace was previously added.
52+
We believe this new behavior is more helpful and eliminates cases where unwanted whitespace was previously added.
5353

5454
In cases where you want to preserve the space adjacent to a newline, you can write a JS string like `{"Monkeys: "}` in your JSX source. We've included a script to do an automated codemod of your JSX source tree that preserves the old whitespace behavior by adding and removing spaces appropriately. You can [install jsx\_whitespace\_transformer from npm](https://github.com/facebook/react/blob/master/npm-jsx_whitespace_transformer/README.md) and run it over your source tree to modify files in place. The transformed JSX files will preserve your code's existing whitespace behavior.
5555

docs/_posts/2014-02-20-react-v0.9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ React.DOM.div(null,
5757
)
5858
```
5959

60-
We believe this new behavior is more helpful and elimates cases where unwanted whitespace was previously added.
60+
We believe this new behavior is more helpful and eliminates cases where unwanted whitespace was previously added.
6161

6262
In cases where you want to preserve the space adjacent to a newline, you can write `{'Monkeys: '}` or `Monkeys:{' '}` in your JSX source. We've included a script to do an automated codemod of your JSX source tree that preserves the old whitespace behavior by adding and removing spaces appropriately. You can [install jsx\_whitespace\_transformer from npm](https://github.com/facebook/react/blob/master/npm-jsx_whitespace_transformer/README.md) and run it over your source tree to modify files in place. The transformed JSX files will preserve your code's existing whitespace behavior.
6363

docs/css/codemirror.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
font-family: monospace;
66
}
77
.CodeMirror-scroll {
8-
/* Set scrolling behaviour here */
8+
/* Set scrolling behavior here */
99
overflow: auto;
1010
}
1111

@@ -122,7 +122,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
122122
}
123123

124124
/* The fake, visible scrollbars. Used to force redraw during scrolling
125-
before actuall scrolling happens, thus preventing shaking and
125+
before actual scrolling happens, thus preventing shaking and
126126
flickering artifacts. */
127127
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler {
128128
position: absolute;

eslint-rules/warning-and-invariant-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
module.exports = function(context) {
20-
// we also allow literal strings and concatinated literal strings
20+
// we also allow literal strings and concatenated literal strings
2121
function getLiteralString(node) {
2222
if (node.type === 'Literal' && typeof node.value === 'string') {
2323
return node.value;
@@ -67,7 +67,7 @@ module.exports = function(context) {
6767
);
6868
return;
6969
}
70-
// count the number of formating substitutions, plus the first two args
70+
// count the number of formatting substitutions, plus the first two args
7171
var expectedNArgs = (format.match(/%s/g) || []).length + 2;
7272
if (node.arguments.length !== expectedNArgs) {
7373
context.report(

scripts/jest/preprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var babelPluginDEV = require('fbjs-scripts/babel/dev-expression');
1919
var babelPluginModules = require('fbjs-scripts/babel/rewrite-modules');
2020
var createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
2121

22-
// Use require.resolve to be resiliant to file moves, npm updates, etc
22+
// Use require.resolve to be resilient to file moves, npm updates, etc
2323
var pathToBabel = path.join(require.resolve('babel'), '..', 'package.json');
2424
var pathToModuleMap = require.resolve('fbjs/module-map');
2525
var pathToBabelPluginDev = require.resolve('fbjs-scripts/babel/dev-expression');

src/isomorphic/classic/class/ReactClass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ function validateMethodOverride(proto, name) {
433433

434434
/**
435435
* Mixin helper which handles policy validation and reserved
436-
* specification keys when building React classses.
436+
* specification keys when building React classes.
437437
*/
438438
function mixSpecIntoComponent(Constructor, spec) {
439439
if (!spec) {

src/isomorphic/classic/element/__tests__/ReactElement-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe('ReactElement', function() {
213213
it('allows the use of PropTypes validators in statics', function() {
214214
// TODO: This test was added to cover a special case where we proxied
215215
// methods. However, we don't do that any more so this test can probably
216-
// be removed. Leaving it in classic as a safety precausion.
216+
// be removed. Leaving it in classic as a safety precaution.
217217
var Component = React.createClass({
218218
render: () => null,
219219
statics: {

src/renderers/dom/client/ReactDOMSelection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function setIEOffsets(node, offsets) {
162162
*
163163
* Note: IE10+ supports the Selection object, but it does not support
164164
* the `extend` method, which means that even in modern IE, it's not possible
165-
* to programatically create a backward selection. Thus, for all IE
165+
* to programmatically create a backward selection. Thus, for all IE
166166
* versions, we use the old IE API to create our selections.
167167
*
168168
* @param {DOMElement|DOMTextNode} node

0 commit comments

Comments
 (0)