Skip to content

Commit ec8fd24

Browse files
committed
Remove subsection regarding legal comments in source files
1 parent ac47e82 commit ec8fd24

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

README.md

-42
Original file line numberDiff line numberDiff line change
@@ -2097,45 +2097,3 @@ const actions = function() {
20972097
}
20982098
```
20992099
**[⬆ back to top](#table-of-contents)**
2100-
2101-
### Avoid legal comments in source files
2102-
That's what your `LICENSE` file at the top of your source tree is for.
2103-
2104-
**Bad:**
2105-
```javascript
2106-
/*
2107-
The MIT License (MIT)
2108-
2109-
Copyright (c) 2016 Ryan McDermott
2110-
2111-
Permission is hereby granted, free of charge, to any person obtaining a copy
2112-
of this software and associated documentation files (the "Software"), to deal
2113-
in the Software without restriction, including without limitation the rights
2114-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2115-
copies of the Software, and to permit persons to whom the Software is
2116-
furnished to do so, subject to the following conditions:
2117-
2118-
The above copyright notice and this permission notice shall be included in all
2119-
copies or substantial portions of the Software.
2120-
2121-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2122-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2123-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2124-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2125-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2126-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2127-
SOFTWARE
2128-
*/
2129-
2130-
function calculateBill() {
2131-
// ...
2132-
}
2133-
```
2134-
2135-
**Good**:
2136-
```javascript
2137-
function calculateBill() {
2138-
// ...
2139-
}
2140-
```
2141-
**[⬆ back to top](#table-of-contents)**

0 commit comments

Comments
 (0)