Icon SunFilledIcon MoonStars

Icon LinkStyle Guide

Icon LinkCapitalization

In Sway, structs, traits, and enums are CapitalCase. Modules, variables, and functions are snake_case, constants are SCREAMING_SNAKE_CASE. The compiler will warn you if your capitalization is ever unidiomatic.

Was this page helpful?

Icon ListDetailsOn this page