Skip to content

Commit b2934a4

Browse files
authored
Fix typos (#215)
Fixed typos found in source code comments, etc.
1 parent 5f8144e commit b2934a4

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

ext/pycall/pycall.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,10 +1190,10 @@ pycall_convert_index(VALUE index)
11901190
}
11911191
}
11921192
else if (rb_obj_is_kind_of(index, rb_cRange)) {
1193-
pyobj = pycall_pyslice_from_ruby(index); /* New refrence */
1193+
pyobj = pycall_pyslice_from_ruby(index); /* New reference */
11941194
}
11951195
else if (pycall_obj_is_step_range(index)) {
1196-
pyobj = pycall_pyslice_from_ruby(index); /* New refrence */
1196+
pyobj = pycall_pyslice_from_ruby(index); /* New reference */
11971197
}
11981198
else {
11991199
pyobj = pycall_pyobject_from_ruby(index); /* New reference */
@@ -1527,7 +1527,7 @@ pycall_pyobject_to_ruby(PyObject *pyobj)
15271527
Py_API(Py_IncRef)((PyObject *)pyobj->ob_type);
15281528
cls = pycall_python_type_mapping_get_mapped_class(pycall_pytypeptr_new((PyObject *)pyobj->ob_type));
15291529
if (NIL_P(cls)) {
1530-
rb_warning("Currentry do not support to convert %s to Ruby object", Py_TYPE(pyobj)->tp_name);
1530+
rb_warning("Currently do not support to convert %s to Ruby object", Py_TYPE(pyobj)->tp_name);
15311531
return pycall_pyobject_wrapper_object_new(rb_cObject, pyobj);
15321532
}
15331533

@@ -1662,7 +1662,7 @@ pycall_pylong_to_ruby(PyObject *pyobj)
16621662
}
16631663
#endif
16641664

1665-
rb_warning("Currentry do not support to convert multi-precision PyLong number to Ruby object");
1665+
rb_warning("Currently do not support to convert multi-precision PyLong number to Ruby object");
16661666

16671667
return Qnil;
16681668
}

lib/pycall.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def with(ctx)
116116
rescue PyError => err
117117
raise err unless ctx.__exit__(err.type, err.value, err.traceback)
118118
rescue Exception => err
119-
# TODO: support telling what exception has been catched
119+
# TODO: support telling what exception has been caught
120120
raise err unless ctx.__exit__(err.class, err, err.backtrace_locations)
121121
else
122122
ctx.__exit__(nil, nil, nil)

lib/pycall/libpython/pytypeobject_struct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def self.new(*args)
231231
else
232232
name, basic_size = *args
233233
new.tap do |t|
234-
# NOTE: Disable autorelease for avoiding SEGV occurrance in Python's GC collect function
234+
# NOTE: Disable autorelease for avoiding SEGV occurrence in Python's GC collect function
235235
# at which the __new__ method object of this type object is freed.
236236
t.pointer.autorelease = false
237237

0 commit comments

Comments
 (0)