Skip to content

Commit b239847

Browse files
committed
Fix memset call in basic_concepts user guide
The example on line 195 called mem_s.memset(value=...), but _Memory.memset's parameter is named val. It also had a stray extra quote in ord(b"-""). Correct both so the snippet runs.
1 parent 6b3c588 commit b239847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/doc_sources/user_guides/basic_concepts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ expose Python buffer interface.
192192
>>> mem_d.copy_from_host(b"abcdefghijklmnopqrstuvwxyz")
193193
194194
>>> mem_s = dpm.MemoryUSMShared(30)
195-
>>> mem_s.memset(value=ord(b"-""))
195+
>>> mem_s.memset(val=ord(b"-"))
196196
>>> mem_s.copy_from_device(mem_d)
197197
198198
>>> # since USM-shared is host-accessible,

0 commit comments

Comments
 (0)