Skip to content

Commit 48f81c1

Browse files
committed
Code example indent fixed
1 parent 688814a commit 48f81c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: src/Layout.jsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ const Title = styled.h1`
2222
const codeES6 = `
2323
class Pattern {
2424
constructor(el) {
25-
this.index = 0;
26-
this.elements = el;
25+
this.index = 0;
26+
this.elements = el;
2727
}
2828
2929
next() {
30-
return this.elements[this.index++];
30+
return this.elements[this.index++];
3131
}
3232
3333
hasNext() {
34-
return this.index < this.elements.length;
34+
return this.index < this.elements.length;
3535
}
3636
}
3737
@@ -47,10 +47,10 @@ function Pattern(el) {
4747
4848
Pattern.prototype = {
4949
next: function() {
50-
return this.elements[this.index++];
50+
return this.elements[this.index++];
5151
},
5252
hasNext: function() {
53-
return this.index < this.elements.length;
53+
return this.index < this.elements.length;
5454
}
5555
};
5656

0 commit comments

Comments
 (0)