Skip to content

Commit 4d2c639

Browse files
authored
docs: Fix typos
1 parent 139aa77 commit 4d2c639

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/3_1_patch_anatomy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ bytecodePatch(name = "Another patch") {
162162

163163
### 🧩 Extensions
164164

165-
Extensions are precompiled DEX file merged into the `BytecodePatchContext` before a patch is applied.
166-
While patches deal with the compile-time side of apps, extensions take care of the apps runtime
165+
Extensions are precompiled DEX files merged into the `BytecodePatchContext` before a patch is applied.
166+
While patches deal with the compile-time side of an app, extensions take care of the app's runtime
167167
by extending the patched app with additional classes.
168168

169169
Assume you want to add a complex feature to an app that would need multiple classes and methods:

docs/3_2_matching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ indexedMatcher(
270270
reference("Lcom/some/Class;->someMethod()V"),
271271
literal(1L),
272272
registers(1, 2, 3),
273-
instruction { opcode == Opcode.INVOKEVIRTUAL },
273+
instruction { opcode == Opcode.INVOKE_VIRTUAL },
274274
allOf(noneOf(opcode(Opcode.CONST_STRING), opcode(Opcode.CONST)), anyOf(string("A"), string("B")))
275275
)
276276
```
@@ -330,7 +330,7 @@ the following APIs are available to use indexed matchers in a declarative way:
330330
```kt
331331
firstMethodDeclaratively {
332332
instructions( string(), method())
333-
opcodes(Opcode.CONST_STRING, Opcodes.INVOKE_VIRTUAL) // Matches sequentially using after().
333+
opcodes(Opcode.CONST_STRING, Opcode.INVOKE_VIRTUAL) // Matches sequentially using after().
334334
strings("A", "B", "C") // Matches full strings using unorderedAllOf(); Also uses them for fast lookup.
335335
}
336336
```
@@ -350,7 +350,7 @@ val match = firstMethodComposite {
350350
after(2..3, method("name"))
351351
)
352352
strings("someString", "anotherString")
353-
opcodes(Opcode.INVOKEVIRTUAL, Opcode.INVOKEINTERFACE)
353+
opcodes(Opcode.INVOKE_VIRTUAL, Opcode.INVOKE_INTERFACE)
354354
}
355355

356356
match.method

0 commit comments

Comments
 (0)