Fixed typos

This commit is contained in:
Semen Zhydenko
2018-01-02 12:43:47 +01:00
parent 6e6916e265
commit 7d612d0471
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<!--- In case it's a feature suggestion, otherwise delete this section --> <!--- In case it's a feature suggestion, otherwise delete this section -->
<!--- Make sure there isn't already a snippet accomplishing your goal --> <!--- Make sure there isn't already a snippet accomplishing your goal -->
## [FEATURE] _REPLACE THIS WITH A BRIEF SUMMARY OF THE SUGGESTED SNIPPET_ ## [FEATURE] _REPLACE THIS WITH A BRIEF SUMMARY OF THE SUGGESTED SNIPPET_
**Category:** <!-- One of the existing categories preferrably --> **Category:** <!-- One of the existing categories preferably -->
### Description <!-- IF NEEDED --> ### Description <!-- IF NEEDED -->
<!-- More detailed description of the snippet you want to be included in 30-seconds-of-code --> <!-- More detailed description of the snippet you want to be included in 30-seconds-of-code -->

View File

@ -6,7 +6,7 @@ setup_git() {
commit_website_files() { commit_website_files() {
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
if [ $TRAVIS_BRANCH == "master" ]; then if [ $TRAVIS_BRANCH == "master" ]; then
echo "Commiting to master branch..." echo "Committing to master branch..."
git checkout master git checkout master
git add * git add *
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [ci skip]" git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [ci skip]"

View File

@ -14,7 +14,7 @@ As a member of the team that manages **30 seconds of code**, you have the follow
## Guidelines for merging pull requests and making changes to the project ## Guidelines for merging pull requests and making changes to the project
- **[Usual guidelines](https://github.com/Chalarangelo/30-seconds-of-code/blob/master/CONTRIBUTING.md) apply.** Make sure to follow them, like everybody else. - **[Usual guidelines](https://github.com/Chalarangelo/30-seconds-of-code/blob/master/CONTRIBUTING.md) apply.** Make sure to follow them, like everybody else.
- **For a pull request to be considered ready to merge, there should be at least 2 (preferrably 3) reviews approving it for merge.** There are, however, certain exceptions: - **For a pull request to be considered ready to merge, there should be at least 2 (preferably 3) reviews approving it for merge.** There are, however, certain exceptions:
- **If a pull request only fixes typos**, there is no need to wait for a second reviewer (unless you are not absolutely certain these were not typos in the first place). - **If a pull request only fixes typos**, there is no need to wait for a second reviewer (unless you are not absolutely certain these were not typos in the first place).
- **If a pull request only clarifies a snippet's description or enforces the styleguide for an existng snippet**, you might be able to merge it without getting a second reviewer to review it, but only if you are absolutely certain about it. - **If a pull request only clarifies a snippet's description or enforces the styleguide for an existng snippet**, you might be able to merge it without getting a second reviewer to review it, but only if you are absolutely certain about it.
- **Make sure pull requests pass the Travis CI build**, otherwise try and find out what's wrong and inform the author of the pull request. - **Make sure pull requests pass the Travis CI build**, otherwise try and find out what's wrong and inform the author of the pull request.

View File

@ -1357,7 +1357,7 @@ sampleSize([1, 2, 3], 4); // [2,3,1]
Randomizes the order of the values of an array, returning a new array. Randomizes the order of the values of an array, returning a new array.
Uses the Fisher-Yates algoritm to reorder the elements of the array, based on the [Lodash implementation](https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js), but as a pure function. Uses the Fisher-Yates algorithm to reorder the elements of the array, based on the [Lodash implementation](https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js), but as a pure function.
```js ```js
const shuffle = ([...arr]) => { const shuffle = ([...arr]) => {

View File

@ -289,7 +289,7 @@ reducedFilter(data, ['id', 'name'], item =&gt; item.age &gt; 24); // [{ id: 2, n
}; };
</code></pre><pre><code class="language-js">sampleSize([1, 2, 3], 2); // [3,1] </code></pre><pre><code class="language-js">sampleSize([1, 2, 3], 2); // [3,1]
sampleSize([1, 2, 3], 4); // [2,3,1] sampleSize([1, 2, 3], 4); // [2,3,1]
</code></pre></div></div><br/><div class="card fluid"><div class="section double-padded"><h3 id="shuffle">shuffle</h3></div><div class="section double-padded"><p>Randomizes the order of the values of an array, returning a new array.</p><p>Uses the Fisher-Yates algoritm to reorder the elements of the array, based on the <a href="https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js">Lodash implementation</a>, but as a pure function.</p><pre><code class="language-js">const shuffle = ([...arr]) =&gt; { </code></pre></div></div><br/><div class="card fluid"><div class="section double-padded"><h3 id="shuffle">shuffle</h3></div><div class="section double-padded"><p>Randomizes the order of the values of an array, returning a new array.</p><p>Uses the Fisher-Yates algorithm to reorder the elements of the array, based on the <a href="https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js">Lodash implementation</a>, but as a pure function.</p><pre><code class="language-js">const shuffle = ([...arr]) =&gt; {
let m = arr.length; let m = arr.length;
while (m) { while (m) {
const i = Math.floor(Math.random() * m--); const i = Math.floor(Math.random() * m--);

View File

@ -2,7 +2,7 @@
Randomizes the order of the values of an array, returning a new array. Randomizes the order of the values of an array, returning a new array.
Uses the Fisher-Yates algoritm to reorder the elements of the array, based on the [Lodash implementation](https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js), but as a pure function. Uses the Fisher-Yates algorithm to reorder the elements of the array, based on the [Lodash implementation](https://github.com/lodash/lodash/blob/b2ea6b1cd251796dcb5f9700c4911a7b6223920b/shuffle.js), but as a pure function.
```js ```js
const shuffle = ([...arr]) => { const shuffle = ([...arr]) => {