Skip to content

Commit 2776196

Browse files
committed
Fixed typos
1 parent eb1ab40 commit 2776196

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/autodoc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ uses it to document the classes.
2424
has multiple issues. For example, the inheritance ``:inherited-members:``
2525
does not work on the dbus elements.
2626

27-
Writting docstrings
27+
Writing docstrings
2828
-------------------
2929

3030
The dbus methods should be documented same way as the regular function

src/sdbus/sd_bus_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,5 +332,5 @@ typedef struct {
332332
extern PyType_Spec SdBusType;
333333
extern PyObject* SdBus_class;
334334

335-
// Module level funcions
335+
// Module level functions
336336
extern PyMethodDef SdBusPyInternal_methods[];

src/sdbus/sd_bus_internals_bus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ int future_set_exception_from_message(PyObject* future, sd_bus_message* message)
210210

211211
PyObject* exception_to_raise = PyDict_GetItemWithError(dbus_error_to_exception_dict, error_name_str);
212212

213-
PyObject* exception_occured = PyErr_Occurred();
214-
if (exception_occured) {
215-
Py_XDECREF(CALL_PYTHON_CHECK_RETURN_NEG1(PyObject_CallMethodObjArgs(future, set_exception_str, exception_occured, NULL)));
213+
PyObject* exception_occurred = PyErr_Occurred();
214+
if (exception_occurred) {
215+
Py_XDECREF(CALL_PYTHON_CHECK_RETURN_NEG1(PyObject_CallMethodObjArgs(future, set_exception_str, exception_occurred, NULL)));
216216
return 0;
217217
}
218218

0 commit comments

Comments
 (0)