• Limitless_screaming@kbin.earth
      link
      fedilink
      arrow-up
      12
      ·
      9 hours ago

      In Rust and lots of other languages you have to end each statement with a semicolon. The semi colon is usually placed right after the statement, but in this example there’s indentation after each statement before the semicolon so they’re all aligned.

      There’s also the curly brackets, they’re padded in the same way, but those usually define where a scope (block) starts and ends making it even worse.