Skip to content

Commit 2428982

Browse files
committed
Fix return type of fill
Signed-off-by: James Brodman <[email protected]>
1 parent 69eab08 commit 2428982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/extensions/USM/USM.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,14 @@ class queue {
370370
public:
371371
...
372372
template <typename T>
373-
void fill(void* ptr, const T& pattern, size_t count);
373+
event fill(void* ptr, const T& pattern, size_t count);
374374
};
375375
----
376376
Parameters::
377377
* `void* ptr` - pointer to the memory to fill
378378
* `const T& pattern` - pattern to be filled. `T` should be trivially copyable.
379379
* `size_t count` - number of times to fill `pattern` into `ptr`
380-
Return value:: Returns an event representing the fill operation.
380+
Return value:: Returns an event representing the fill operation or void if on the `handler`.
381381

382382
'''
383383
==== Restricted USM

0 commit comments

Comments
 (0)