Skip to content

Commit

Permalink
fixed 2.3 to include enum cases for camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik authored Jul 20, 2016
1 parent 15450b8 commit 49cd7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Make sure to read [Apple's API Design Guidelines](https://swift.org/documentatio

Specifics from these guidelines + additional remarks are mentioned below.

This guide was last updated for Swift 2.2 on 6/21/2016.
This guide was last updated for Swift 2.2 on 7/20/2016.

## Table Of Contents

Expand Down Expand Up @@ -172,7 +172,7 @@ if x == firstReallyReallyLongPredicateFunction()

* **2.2** Use `PascalCase` for type names (e.g. `struct`, `enum`, `class`, `typedef`, `associatedtype`, etc.).

* **2.3** Use `camelCase` (initial lowercase letter) for function, method, variable, constant, argument names, etc.).
* **2.3** Use `camelCase` (initial lowercase letter) for function, method, variable, constant, argument names, enum cases, etc.).

* **2.4** When dealing with an acronym or other name that is usually written in all caps, actually use all caps in any names that use this in code. The exception is if this word is at the start of a name that needs to start with lowercase - in this case, use all lowercase for the acronym.

Expand Down

0 comments on commit 49cd7a9

Please sign in to comment.