Skip to content

Commit 2ac3c71

Browse files
author
fynv
committed
Minor fix
1 parent 6bd87b2 commit 2ac3c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ ThrustRTC, Python (host) + C++ (device):
5454
```python
5555
import ThrustRTC as trtc
5656
57-
A = trtc.device_vector_from_list(ctx, [1, -3, 2, -1], 'int32_t')
58-
trtc.Replace_If(A, trtc.Functor( ctx, {}, ['x'], ' return x<0;\n'), trtc.DVInt32(0))
57+
A = trtc.device_vector_from_list([1, -3, 2, -1], 'int32_t')
58+
trtc.Replace_If(A, trtc.Functor({}, ['x'], ' return x<0;\n'), trtc.DVInt32(0))
5959
6060
# A contains [1, 0, 2, 0]
6161
```

0 commit comments

Comments
 (0)