We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e9e65c commit 46eefdfCopy full SHA for 46eefdf
README.markdown
@@ -520,7 +520,7 @@ You can define constants on a type rather than an instance of that type using ty
520
**Preferred:**
521
```swift
522
enum Math {
523
- static let e = 2.718281828459045235360287
+ static let e = 2.718281828459045235360287
524
static let root2 = 1.41421356237309504880168872
525
}
526
@@ -531,7 +531,7 @@ let hypotenuse = side * Math.root2
531
532
**Not Preferred:**
533
534
-let e = 2.718281828459045235360287 // pollutes global namespace
+let e = 2.718281828459045235360287 // pollutes global namespace
535
let root2 = 1.41421356237309504880168872
536
537
let hypotenuse = side * root2 // what is root2?
0 commit comments