diff options
Diffstat (limited to 'site/dev/contrib')
-rw-r--r-- | site/dev/contrib/style.md | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/site/dev/contrib/style.md b/site/dev/contrib/style.md index 177a58b8d4..e952ed1b68 100644 --- a/site/dev/contrib/style.md +++ b/site/dev/contrib/style.md @@ -78,19 +78,10 @@ int herdCats(const Array& cats) { } ~~~~ -Enum values are prefixed with k. Unscoped enum values are post fixed with -an underscore and singular name of the enum name. The enum itself should be -singular for exclusive values or plural for a bitfield. If a count is needed it -is k<singular enum name>Count and not be a member of the enum (see example): - -<!--?prettify?--> -~~~~ -enum class SkPancakeType { - kBlueberry, - kPlain, - kChocolateChip, -}; -~~~~ +Enum values are prefixed with k and have post fix that consists of an underscore +and singular name of the enum name. The enum itself should be singular for +exclusive values or plural for a bitfield. If a count is needed it is +k<singular enum name>Count and not be a member of the enum (see example): <!--?prettify?--> ~~~~ |