Skip to content

Fix typos in C API documentation#149588

Open
lpyu001 wants to merge 1 commit intopython:mainfrom
lpyu001:main
Open

Fix typos in C API documentation#149588
lpyu001 wants to merge 1 commit intopython:mainfrom
lpyu001:main

Conversation

@lpyu001
Copy link
Copy Markdown

@lpyu001 lpyu001 commented May 9, 2026

This PR fixes three small typos in the C API documentation:

  • Doc/c-api/slots.rst:
    • "essentally" → "essentially" (line 10)
    • "stuctures" → "structures" (line 13)
  • Doc/c-api/synchronization.rst:
    • "anotation" → "annotation" (line 241, in a comment)

No behavioural change, no API change. Trivial documentation fixes only.

@lpyu001 lpyu001 requested a review from ZeroIntensity as a code owner May 9, 2026 02:39
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels May 9, 2026
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented May 9, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 9, 2026

Documentation build overview

📚 cpython-previews | 🛠️ Build #32612727 | 📁 Comparing 229a07e against main (354ef33)

  🔍 Preview build  

1 file changed
± c-api/slots.html

void PyCriticalSection2_BeginMutex(PyCriticalSection2 *c, PyMutex *m1, PyMutex *m2);

.. (These need to be in a separate section without a Stable ABI anotation.)
.. (These need to be in a separate section without a Stable ABI annotation.)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, this is not user-facing because it's an rST comment so if we really want to restrict our attention to visible typos, we can revert that change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's fine, we're going to merge the other fixes anyway.

Copy link
Copy Markdown
Member

@picnixz picnixz May 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no other fixes in synchronization.rst. I think we can revert that part so that we only fix typos in Doc/c-api/slots.rst.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also surprised that thre are only typos in slots.rst and synchronization.rst and not elsewhre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

4 participants