diff --git a/docs/src/usage/compile.rst b/docs/src/usage/compile.rst index 7fe0ffd4f..ae01bb1f3 100644 --- a/docs/src/usage/compile.rst +++ b/docs/src/usage/compile.rst @@ -225,7 +225,7 @@ In some cases returning updated state can be pretty inconvenient. Hence, def fun(x, y): z = x + y state.append(z) - return mx.exp(z), state + return mx.exp(z) fun(mx.array(1.0), mx.array(2.0)) # Prints [array(3, dtype=float32)]