Skip to content

Commit a433e67

Browse files
committed
Two more small fixes
1 parent fe5a4d2 commit a433e67

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/constructors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set to the `prototype` of the function object that was called.
99

1010
If the function that was called has no explicit `return` statement, then it
1111
implicitly returns the value of `this` (the new object). Otherwise it returns
12-
the value of the `return` statement, **but** only if `typeof returnValue` is
13-
`object`.
12+
the value of the `return` statement, **but** only if the return value is an
13+
object.
1414

1515
function Foo() {
1616
this.bla = 1;

doc/typeof.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ The `typeof` operator (together with
55
design flaw of JavaScript, as it is near of being **completely broken**.
66

77
Although `instanceof` still has its limited uses, `typeof` really has only one
8-
practical use case, which **not happens** to be checking the type of an object.
8+
practical use case, which does **not** happen to be checking the type of an
9+
object.
910

1011
> **Note:** While `typeof` can also be called with a function like syntax
1112
> i.e. `typeof(obj)`, this is not a function call. The two parenthesis will

0 commit comments

Comments
 (0)