788
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 18 points 1 year ago* (last edited 1 year ago)

The line of code (well, documentation in the code) used to look like something like this (I'm not sure if this formatting will work on mobile, sorry):

The code ends with an s

----------------------

And after her changes it looks like this:

The code ends with an s

------------------------

See how I added an extra - in that second line? That makes the S happier because now it also has a - below it like all the other letters. This also just generally makes that line more consistent with other spots in the code. So it's not a bad change. It doesn't do anything really but making your code format nice, easy to read, and consistent is usually important in programming so although it doesn't do anything tangible it's still a valuable change!

this post was submitted on 16 Aug 2023
788 points (96.5% liked)

Linux

47365 readers
1244 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS