Merge pull request #1735 from tc39/contributing-fix-code-block

CONTRIBUTING.md: Fix code block
This commit is contained in:
Leo Balter 2018-09-12 15:59:27 -04:00 committed by GitHub
commit 6cd3c4fba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,15 +83,17 @@ within the file.
For example: For example:
```
/*--- /*---
esid: sec-weakset.prototype.has esid: sec-weakset.prototype.has
description: Throws TypeError if `this` is not Object. description: Throws TypeError if `this` is not Object.
info: > info: |
WeakSet.prototype.has ( value ) WeakSet.prototype.has ( value )
1. Let S be the this value. 1. Let S be the this value.
2. If Type(S) is not Object, throw a TypeError exception. 2. If Type(S) is not Object, throw a TypeError exception.
---*/ ---*/
```
Note: Adding more context than the direct quote from ECMAScript should rarely Note: Adding more context than the direct quote from ECMAScript should rarely
be necessary. If you must add context to the quote, use the JavaScript be necessary. If you must add context to the quote, use the JavaScript