Skip to content

Commit 509ecc8

Browse files
authored
docs: Correct API usage of fingerprints
1 parent e4e66b0 commit 509ecc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/2_2_patch_anatomy.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ val disableAdsPatch = bytecodePatch(
8585
// Business logic of the patch to disable ads in the app.
8686
execute {
8787
// Fingerprint to find the method to patch.
88-
val showAdsMatch by showAdsFingerprint {
88+
val showAdsFingerprint = fingerprint {
8989
// More about fingerprints on the next page of the documentation.
9090
}
9191

9292
// In the method that shows ads,
9393
// call DisableAdsPatch.shouldDisableAds() from the extension (precompiled DEX file)
9494
// to enable or disable ads.
95-
showAdsMatch.method.addInstructions(
95+
showAdsFingerprint.method.addInstructions(
9696
0,
9797
"""
9898
invoke-static {}, LDisableAdsPatch;->shouldDisableAds()Z

0 commit comments

Comments
 (0)