summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/user-guide/a1-02-slangpy.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user-guide/a1-02-slangpy.md b/docs/user-guide/a1-02-slangpy.md
index 04021dd94..0337b4d86 100644
--- a/docs/user-guide/a1-02-slangpy.md
+++ b/docs/user-guide/a1-02-slangpy.md
@@ -92,7 +92,7 @@ One key point is that the basic `TensorView<T>` objects are not differentiable.
Instead, use the `DiffTensorView` type for when you need differentiable tensors. Currently, `DiffTensorView` only supports the `float` dtype variety, and requires the use of `.load(offset)` and `.store(offset, val)` instead of `[]`, although
`offset` can be a scalar `uint` or vector `uint2`, `uint3`, etc.. for multi-dimensional indexing.
-Here's a barebones example of a differentiable `sqr` that computes the `sin(x)`
+Here's a barebones example of a differentiable `sqr` that computes `x*x`
``` C
[AutoPyBindCUDA]