Skip to content

Commit 49fbdd0

Browse files
committed
Merge pull request kodecocodes#30 from gregheo/gth-const
Move `const` after the type for consistency.
2 parents b8c1080 + 41fd995 commit 49fbdd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ Constants should be camel-case with all words capitalized and prefixed by the re
195195
**Preferred:**
196196

197197
```objc
198-
static const NSTimeInterval RWTutorialViewControllerNavigationFadeAnimationDuration = 0.3;
198+
static NSTimeInterval const RWTutorialViewControllerNavigationFadeAnimationDuration = 0.3;
199199
```
200200

201201
**Not Preferred:**
202202

203203
```objc
204-
static const NSTimeInterval fadetime = 1.7;
204+
static NSTimeInterval const fadetime = 1.7;
205205
```
206206

207207
Properties should be camel-case with the leading word being lowercase. Use auto-synthesis for properties rather than manual @synthesize statements unless you have good reason.
@@ -344,9 +344,9 @@ Constants are preferred over in-line string literals or numbers, as they allow f
344344
**Preferred:**
345345
346346
```objc
347-
static const NSString *RWAboutViewControllerCompanyName = @"RayWenderlich.com";
347+
static NSString * const RWAboutViewControllerCompanyName = @"RayWenderlich.com";
348348
349-
static const CGFloat RWImageThumbnailHeight = 50.0;
349+
static CGFloat const RWImageThumbnailHeight = 50.0;
350350
```
351351

352352
**Not Preferred:**

0 commit comments

Comments
 (0)