fixes
This commit is contained in:
parent
585b77dbb9
commit
203b8f9f07
5 changed files with 10 additions and 10 deletions
|
@ -30,7 +30,7 @@ let animal = new Animal("My animal");
|
|||
...And `Rabbit`:
|
||||
|
||||
```js
|
||||
class Rabbit extends Animal {
|
||||
class Rabbit {
|
||||
constructor(name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ The pattern is very common, it's not about users, but just about anything. For i
|
|||
What we'd like to have is an iterable source of commits, so that we could use it like this:
|
||||
|
||||
```js
|
||||
let repo = 'iliakan/javascript-tutorial-en'; // Github repository to get commits from
|
||||
let repo = 'javascript-tutorial/en.javascript.info'; // Github repository to get commits from
|
||||
|
||||
for await (let commit of fetchCommits(repo)) {
|
||||
// process commit
|
||||
|
@ -320,7 +320,7 @@ An example of use (shows commit authors in console):
|
|||
|
||||
let count = 0;
|
||||
|
||||
for await (const commit of fetchCommits('iliakan/javascript-tutorial-en')) {
|
||||
for await (const commit of fetchCommits('javascript-tutorial/en.javascript.info')) {
|
||||
|
||||
console.log(commit.author.login);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue