Skip to content

Commit 9e19813

Browse files
authored
CF tutorial: No identity in else case (#1384)
* CF tutorial: No identity in else case * Sinkhorn
1 parent b4204ed commit 9e19813

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/tutorials/control-flow.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function maybe_square(cond, x)
1919
if cond
2020
x = x .^ 2
2121
else
22-
x = x
22+
x = x .^ 3
2323
end
2424
return x
2525
end
@@ -146,7 +146,8 @@ x = Reactant.to_rarray([1., 2., 3.])
146146
```
147147

148148
Similarly, one can trace while loops. The following is a minimal implementation of the
149-
[Sinkhorn-Knopp algorithm]() which aims to solve the entropic optimal transport problem:
149+
[Sinkhorn-Knopp algorithm](https://en.wikipedia.org/wiki/Sinkhorn's_theorem) which aims
150+
to solve the entropic optimal transport problem:
150151

151152
```@example control_flow_tutorial
152153
using LinearAlgebra: Diagonal

0 commit comments

Comments
 (0)