Skip to content

Commit

Permalink
MINOR: [Docs][Python] Fix typo on pycapsule and ipc docs (apache#38550)
Browse files Browse the repository at this point in the history
### Rationale for this change

`_export_from_c` was a typo and it should be `_export_to_c`.

### Are these changes tested?

No.

### Are there any user-facing changes?

Docs changes.

Authored-by: Bryce Mecum <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
amoeba authored and dgreiss committed Feb 17, 2024
1 parent 6066f83 commit 58f53c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/format/CDataInterface/PyCapsuleInterface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The :ref:`C data interface <c-data-interface>` and
different implementations of Arrow. However, these interfaces don't specify how
Python libraries should expose these structs to other libraries. Prior to this,
many libraries simply provided export to PyArrow data structures, using the
``_import_from_c`` and ``_export_from_c`` methods. However, this always required
``_import_from_c`` and ``_export_to_c`` methods. However, this always required
PyArrow to be installed. In addition, those APIs could cause memory leaks if
handled improperly.

Expand Down
2 changes: 1 addition & 1 deletion python/pyarrow/ipc.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ cdef class RecordBatchReader(_Weakrefable):
Notes
-----
To import and export using the Arrow C stream interface, use the
``_import_from_c`` and ``_export_from_c`` methods. However, keep in mind this
``_import_from_c`` and ``_export_to_c`` methods. However, keep in mind this
interface is intended for expert users.
Examples
Expand Down

0 comments on commit 58f53c2

Please sign in to comment.