Skip to content

Commit 2d80765

Browse files
authored
Merge pull request #2169 from IntelPython/fix-typo-in-exceptions-docstrings
Resolve a typo in exceptions docstrings
2 parents 3dfc117 + 516acaa commit 2d80765

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dpctl/_sycl_context.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ _logger = logging.getLogger(__name__)
5959
cdef class SyclContextCreationError(Exception):
6060
"""
6161
A ``SyclContextCreationError`` exception is raised
62-
when :class:`.SyclContext` could not created.
62+
when :class:`.SyclContext` could not be created.
6363
"""
6464
pass
6565

dpctl/_sycl_device.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ __all__ = [
128128
cdef class SyclDeviceCreationError(Exception):
129129
"""
130130
A ``SyclDeviceCreationError`` exception is raised when
131-
:class:`.SyclDevice` instance could not created.
131+
:class:`.SyclDevice` instance could not be created.
132132
"""
133133
pass
134134

dpctl/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_order_manager():
161161
try:
162162
q = dpctl.SyclQueue()
163163
except dpctl.SyclQueueCreationError:
164-
pytest.skip("Queue could not created for default-selected device")
164+
pytest.skip("Queue could not be created for default-selected device")
165165
_som = dpctl.utils.SequentialOrderManager
166166
_mngr = _som[q]
167167
assert isinstance(_mngr.num_host_task_events, int)

examples/cython/usm_memory/scripts/bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def gen_option_params(
4646
continue
4747

4848
if not queues:
49-
print("No queues could not created, nothing to do.")
49+
print("No queues could be created, nothing to do.")
5050
exit(0)
5151

5252
opt_params_list = []

0 commit comments

Comments
 (0)