Skip to content

Commit 56d3742

Browse files
authored
Update _overviews/scala3-macros/tutorial/inline.md
1 parent 170877a commit 56d3742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-macros/tutorial/inline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ val x = 2
276276
val x2 = x * x
277277
x2 * {
278278
if (0 == 0) 1.0
279-
else if (0 % 2 == 1) x * power(x2, 0 - 1) // dead branch
279+
else if (0 % 2 == 1) x2 * power(x2, 0 - 1) // dead branch
280280
else power(x2 * x2, 0 / 2) // dead branch
281281
}
282282
// partially evaluated to

0 commit comments

Comments
 (0)