From 24287f9215b2e2c036dfea1fa5e6aa2cb40d588c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 31 Jul 2013 12:16:05 -0700 Subject: [PATCH] Updated Note style guide (markdown) --- Note-style-guide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Note-style-guide.md b/Note-style-guide.md index 4677365..a5185e6 100644 --- a/Note-style-guide.md +++ b/Note-style-guide.md @@ -10,9 +10,11 @@ Here are some rough guidelines to Rust style. They are followed unevenly and the ## General * Type names and enumeration variants should be in `CamelCase`. +* Acrynoms too should be camel case: `Uuid`, not `UUID`. * Functions, methods, and variables should be `lowercase_with_underscores` where it helps readability. * Static variables should be in `ALL_CAPS`. * Constructors are methods called `new` or `new_with_more_details`. +* Constructors that simply convert from another type are methods called `from_foo`. * When writing a binding to an external library, put the raw C bindings in a module called `ffi` (rather than `ll`). Do not create high-level bindings called `hl`. ## Trait naming