summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-01-01 00:34:56 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-01-01 00:34:56 (GMT)
commit1498d637953f9dcb2c8e445cd1fe201fc6edb0af (patch)
tree4af576420e6fe90843b2286e8a0ef9546093c88d /Doc/api
parent8d784e353f7169eebb75c8c8677a1b9e5fe2c19b (diff)
downloadcpython-1498d637953f9dcb2c8e445cd1fe201fc6edb0af.zip
cpython-1498d637953f9dcb2c8e445cd1fe201fc6edb0af.tar.gz
cpython-1498d637953f9dcb2c8e445cd1fe201fc6edb0af.tar.bz2
SF Patch #1093896: miscellaneous doc typos
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/intro.tex2
-rw-r--r--Doc/api/memory.tex2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/api/intro.tex b/Doc/api/intro.tex
index d27a116..752100d 100644
--- a/Doc/api/intro.tex
+++ b/Doc/api/intro.tex
@@ -277,7 +277,7 @@ set_all(PyObject *target, PyObject *item)
The situation is slightly different for function return values.
While passing a reference to most functions does not change your
ownership responsibilities for that reference, many functions that
-return a referece to an object give you ownership of the reference.
+return a reference to an object give you ownership of the reference.
The reason is simple: in many cases, the returned object is created
on the fly, and the reference you get is the only reference to the
object. Therefore, the generic functions that return object
diff --git a/Doc/api/memory.tex b/Doc/api/memory.tex
index 3da6860..3dbe9a5 100644
--- a/Doc/api/memory.tex
+++ b/Doc/api/memory.tex
@@ -134,7 +134,7 @@ that \var{TYPE} refers to any C type.
In addition, the following macro sets are provided for calling the
Python memory allocator directly, without involving the C API functions
listed above. However, note that their use does not preserve binary
-compatibility accross Python versions and is therefore deprecated in
+compatibility across Python versions and is therefore deprecated in
extension modules.
\cfunction{PyMem_MALLOC()}, \cfunction{PyMem_REALLOC()}, \cfunction{PyMem_FREE()}.