Skip to content

Commit 1144967

Browse files
improve code style and update README accordingly
1 parent 09d83d9 commit 1144967

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

Example/Tests/Tests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ class TableOfContentsSpec: QuickSpec {
5858
}
5959
}
6060
}
61+
6162
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MyBeautifulClass {
4646

4747

4848
func iDontWantToDoThisButWeMustReleaseASAP() {
49-
let element = elements[OhShit._0] // <--- OhShit Constant
49+
let element = elements[OhShit.os0] // <--- OhShit Constant
5050
doSomeThing(with: element)
5151
}
5252

ShitLib/Classes/OhShit.swift

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
public class OhShit {
22

33

4-
public static let _null: Any? = nil
5-
public static let _empty = ""
4+
public static let osNull: Any? = nil
5+
public static let osEmpty = ""
66

7-
public static let _true = true
8-
public static let _false = false
7+
public static let osTrue = true
8+
public static let osFalse = false
99

10-
public static let N_1 = -1
11-
public static let _0 = 0
12-
public static let _1 = 1
10+
public static let osN1 = -1
11+
public static let os0 = 0
12+
public static let os1 = 1
1313

14-
public static let N_1I64: Int64 = -1
15-
public static let _0I64: Int64 = 0
16-
public static let _1I64: Int64 = 1
14+
public static let osN1I64: Int64 = -1
15+
public static let os0I64: Int64 = 0
16+
public static let os1I64: Int64 = 1
1717

1818

1919
private init() {}

0 commit comments

Comments
 (0)