Added comment usage suggestion (#25941)

This commit is contained in:
Annebelle Olminkhof
2018-12-21 06:58:03 +01:00
committed by Manish Giri
parent e2daa47404
commit 697c040a66

View File

@ -45,3 +45,5 @@ When executed, the program above produces the following:
``` ```
Hello World! 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.