Merge pull request #600 from Ayashiihito/master

fixed some typos in 08-regexp-greedy-and-lazy and 1-xmlhttprequest
This commit is contained in:
Ilya Kantor 2018-11-09 10:26:05 +03:00 committed by GitHub
commit 71835ff890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ Complex regular expressions are hard to optimize, so the search may work exactly
## Alternative approach
With regexps, there's often more then one way to do the same thing.
With regexps, there's often more than one way to do the same thing.
In our case we can find quoted strings without lazy mode using the regexp `pattern:"[^"]+"`:

View file

@ -267,7 +267,7 @@ There are 3 methods for HTTP-headers:
`setRequestHeader(name, value)`
: Sets the request header with the given `name` and `value`.
Например:
For instance:
```js
xhr.setRequestHeader('Content-Type', 'application/json');