Skip to content

Commit 8f786ff

Browse files
committed
This wording should be more concise
1 parent eb798c9 commit 8f786ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/en/function/this.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Due to the first case `test` now acts like like a plain function call; therefore
9595
`this` inside it will no longer refer to `someObject`.
9696

9797
While the late binding of `this` might seem like a bad idea at first, it is in
98-
fact what makes [prototypical inheritance](#object.prototype) work.
98+
fact what makes [prototypal inheritance](#object.prototype) work.
9999

100100
function Foo() {}
101101
Foo.prototype.method = function() {};

doc/en/object/prototype.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
## The Prototype
22

33
JavaScript does not feature a classical inheritance model, instead it uses a
4-
*prototypical* one.
4+
*prototypal* one.
55

66
While this is often considered to be one of JavaScript's weaknesses, the
7-
prototypical inheritance model is in fact more powerful than the classic model.
7+
prototypal inheritance model is in fact more powerful than the classic model.
88
It is for example fairly trivial to build a classic model on top of it, while the
99
other way around is a far more difficult task.
1010

1111
Due to the fact that JavaScript is basically the only widely used language that
12-
features prototypical inheritance, it takes some time to adjust to the
12+
features prototypal inheritance, it takes some time to adjust to the
1313
differences between the two models.
1414

1515
The first major difference is that inheritance in JavaScript is done by using so
@@ -104,7 +104,7 @@ the features of newer JavaScript engines; for example,
104104

105105
### In conclusion
106106

107-
It is a **must** to understand the prototypical inheritance model completely
107+
It is a **must** to understand the prototypal inheritance model completely
108108
before writing complex code which makes use of it. Also, watch the length of
109109
the prototype chains and break them up if necessary to avoid possible
110110
performance issues. Further, the native prototypes should **never** be extended

0 commit comments

Comments
 (0)