Skip to content

Commit 0530c92

Browse files
authored
fix square brackets
1 parent 5ab1ce2 commit 0530c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/08-prototypes/04-prototype-methods/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The only usage of `__proto__`, that's not frowned upon, is as a property when cr
1414

1515
Although, there's a special method for this too:
1616

17-
- [Object.create(proto, [descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
17+
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
1818

1919
For instance:
2020

@@ -201,7 +201,7 @@ alert(Object.keys(chineseDictionary)); // hello,bye
201201
- To create an object with the given prototype, use:
202202

203203
- literal syntax: `{ __proto__: ... }`, allows to specify multiple properties
204-
- or [Object.create(proto, [descriptors])](mdn:js/Object/create), allows to specify property descriptors.
204+
- or [Object.create(proto[, descriptors])](mdn:js/Object/create), allows to specify property descriptors.
205205

206206
The `Object.create` provides an easy way to shallow-copy an object with all descriptors:
207207

0 commit comments

Comments
 (0)