Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fynv committed Jun 11, 2019
1 parent 6bd87b2 commit 2ac3c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ ThrustRTC, Python (host) + C++ (device):
```python
import ThrustRTC as trtc
A = trtc.device_vector_from_list(ctx, [1, -3, 2, -1], 'int32_t')
trtc.Replace_If(A, trtc.Functor( ctx, {}, ['x'], ' return x<0;\n'), trtc.DVInt32(0))
A = trtc.device_vector_from_list([1, -3, 2, -1], 'int32_t')
trtc.Replace_If(A, trtc.Functor({}, ['x'], ' return x<0;\n'), trtc.DVInt32(0))
# A contains [1, 0, 2, 0]
```
Expand Down

0 comments on commit 2ac3c71

Please sign in to comment.