Skip to content

Commit

Permalink
Merge pull request scala#2426 from ThinkDumbIndustries/patch-1
Browse files Browse the repository at this point in the history
Fixed error in detailed inlining steps
  • Loading branch information
julienrf authored Jun 9, 2022
2 parents dff9f5e + 56d3742 commit 100d805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _overviews/scala3-macros/tutorial/inline.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ val x = 2
val x2 = x * x
x2 * {
if (0 == 0) 1.0
else if (0 % 2 == 1) x * power(x, 0 - 1) // dead branch
else power(x * x, 0 / 2) // dead branch
else if (0 % 2 == 1) x2 * power(x2, 0 - 1) // dead branch
else power(x2 * x2, 0 / 2) // dead branch
}
// partially evaluated to
val x = 2
Expand Down

0 comments on commit 100d805

Please sign in to comment.