Skip to content

Commit 15f2916

Browse files
committed
README: Aligned spacing in code samples
1 parent bf65978 commit 15f2916

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ If you’re adding InterposeKit using a `Package.swift` manifest, include it in
3535

3636
```
3737
dependencies: [
38-
.package(url: "https://github.com/structuredpath/InterposeKit", from: "0.5.0")
38+
.package(url: "https://github.com/structuredpath/InterposeKit", from: "0.5.0")
3939
]
4040
```
4141

4242
Then add the product to any target that needs it:
4343

4444
```
4545
.target(
46-
name: "YourTarget",
47-
dependencies: [
48-
.product(name: "InterposeKit", package: "InterposeKit")
49-
]
46+
name: "YourTarget",
47+
dependencies: [
48+
.product(name: "InterposeKit", package: "InterposeKit")
49+
]
5050
)
5151
```
5252

@@ -134,6 +134,7 @@ let hook = try Interpose.applyHook(
134134
hookSignature: (@convention(block) (MyClass) -> Int).self
135135
) { hook in
136136
return { `self` in
137+
// Retrieve the original result and add 1 to it. This can be skipped.
137138
return hook.original(`self`, hook.selector) + 1
138139
}
139140
}

0 commit comments

Comments
 (0)