Skip to content

Commit

Permalink
Merge pull request #612 from ZhengzhongSun/patch-1
Browse files Browse the repository at this point in the history
Update patching-prefix.md
  • Loading branch information
pardeike authored Jun 4, 2024
2 parents 11f3a1d + 7d36028 commit e2a97cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Harmony/Documentation/articles/patching-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To stop executing prefixes and skip the original, let the prefix return a bool t

[!code-csharp[example](../examples/patching-prefix.cs?name=skip)]

Here is another example showing the diference between what the original method returns and what the Prefix returns. it illustrate that the boolean return value of the Prefix only determines if the original gets executed or not.
Here is another example showing the difference between what the original method returns and what the Prefix returns. it illustrate that the boolean return value of the Prefix only determines if the original gets executed or not.

[!code-csharp[example](../examples/patching-prefix.cs?name=skip_maybe)]

Expand Down

0 comments on commit e2a97cf

Please sign in to comment.