aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-11 19:00:21 +0800
committerGitHub <noreply@github.com>2017-12-11 19:00:21 +0800
commita5d2cecbc30e2b468488b32312a21cd86bf6dd1e (patch)
tree10c2aa5c74e5a94f3e01a54db84b0dc23fcf0182
parent4a1f18c951f0a056b6a692d196f22bdb810e8ffc (diff)
parentef579617113d10a58cd6fb717f35de7e22c4cfd1 (diff)
downloaddexon-solidity-a5d2cecbc30e2b468488b32312a21cd86bf6dd1e.tar.gz
dexon-solidity-a5d2cecbc30e2b468488b32312a21cd86bf6dd1e.tar.zst
dexon-solidity-a5d2cecbc30e2b468488b32312a21cd86bf6dd1e.zip
Merge pull request #3299 from KamuelaFranco/patch-1
Update style-guide.rst to include enum style
-rw-r--r--docs/style-guide.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index a438b3d0..5b6f42a2 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -739,6 +739,12 @@ Modifier Names
Use mixedCase. Examples: ``onlyBy``, ``onlyAfter``, ``onlyDuringThePreSale``.
+Enums
+=====
+
+Enums, in the style of simple type declarations, should be named using the CapWords style. Examples: ``TokenGroup``, ``Frame``, ``HashStyle``, ``CharacterLocation``.
+
+
Avoiding Naming Collisions
==========================