Skip to content

Commit

Permalink
Update patching-prefix.md
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
ZhengzhongSun authored Jun 4, 2024
1 parent 11f3a1d commit 7d36028
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 7d36028

Please sign in to comment.