Skip to content

Commit 46eefdf

Browse files
jawwadrayfix
authored andcommitted
Remove extra space after “let e” in example (kodecocodes#247)
1 parent 6e9e65c commit 46eefdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ You can define constants on a type rather than an instance of that type using ty
520520
**Preferred:**
521521
```swift
522522
enum Math {
523-
static let e = 2.718281828459045235360287
523+
static let e = 2.718281828459045235360287
524524
static let root2 = 1.41421356237309504880168872
525525
}
526526

@@ -531,7 +531,7 @@ let hypotenuse = side * Math.root2
531531

532532
**Not Preferred:**
533533
```swift
534-
let e = 2.718281828459045235360287 // pollutes global namespace
534+
let e = 2.718281828459045235360287 // pollutes global namespace
535535
let root2 = 1.41421356237309504880168872
536536

537537
let hypotenuse = side * root2 // what is root2?

0 commit comments

Comments
 (0)