Skip to content

Commit fdc7f4c

Browse files
author
Noxy
committed
Fixed code snippet
1 parent ea9aec4 commit fdc7f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_posts/2015-08-03-law-of-demeter.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Another situation that's a claimer for LoD is when you have chained 'get' statem
4444

4545
```swift
4646
let myDesire = Metallica().gimmeFuel().gimmeFire().gimmeThatWhichIDesire()
47-
``
47+
```
4848

4949
In such a case, the `Metallica` class should be refactored and provide it with a mean of calling `Metallica().gimmeThatWhichIDesire()`, for example:
5050

0 commit comments

Comments
 (0)