Added comment usage suggestion (#25941)

pull/34718/head
Annebelle Olminkhof 2018-12-21 06:58:03 +01:00 committed by Manish Giri
parent e2daa47404
commit 697c040a66
1 changed files with 2 additions and 0 deletions

View File

@ -45,3 +45,5 @@ When executed, the program above produces the following:
```
Hello World!
```
In general, it's best to use multi-line comments when explaining what your method does or for your program as a whole. Stick to single-line comments when clarifying a line or two of code, but when you find yourself expanding a file just to finish your single-line comment, consider using a multi-line comment instead.