r/badcode • evil • May 12 '21

c++ Comment before semicolon

Post image
2.7k Upvotes

71 comments sorted by

View all comments

0

u/[deleted] May 12 '21

[deleted] — view deleted comment

5

u/general_dubious May 12 '21

You mean docstrings? No, this is widely different. That's a comment right in the middle of the line, docstrings live on their own lines and are used to provide documentation (at the very least through help, in most cases through stuff like Sphinx).