Skip to content

Commit

Permalink
Merge pull request #72 from mphschmitt/doc/fix_typos
Browse files Browse the repository at this point in the history
[DOC] Fix typos.
  • Loading branch information
wlav committed Jul 22, 2022
2 parents a3d6d42 + 4abb2b2 commit 337f8bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/lowlevel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ C++ has three ways of allocating heap memory (``malloc``, ``new``, and
Direct use of ``malloc`` and ``new`` should be avoided for C++ classes, as
these may override ``operator new`` to control their allocation own.
However these low-level allocators can be necessary for builtin types on
occassion if the C++ side takes ownership (otherwise, prefer either
occasion if the C++ side takes ownership (otherwise, prefer either
``array`` from the builtin module ``array`` or ``ndarray`` from Numpy).

The low-level module adds the following functions:
Expand Down
2 changes: 1 addition & 1 deletion doc/tutorial/CppyyTutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Namespaces have simularities to modules, so we could have imported the class as well.\n",
"Namespaces have similarities to modules, so we could have imported the class as well.\n",
"\n",
"Bound C++ classes are first-class Python object. We can instantiate them, use normal Python introspection tools, call `help()`, they raise Python exceptions on failure, manage memory through Python's ref-counting and garbage collection, etc., etc. Furthermore, we can use them in conjunction with other C++ classes."
]
Expand Down

0 comments on commit 337f8bc

Please sign in to comment.