Skip to content

Commit c25967a

Browse files
committed
Apply typo fixes from Julio M. Merino Vidal
[SVN r27513]
1 parent bcb6370 commit c25967a

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

doc/PyConDC_2003/bpl_mods.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ correctly:
273273
==================
274274

275275
This section outlines some of the library's major features. Except as
276-
neccessary to avoid confusion, details of library implementation are
276+
necessary to avoid confusion, details of library implementation are
277277
omitted.
278278

279279
-------------------------------------------
@@ -537,7 +537,7 @@ This has two effects:
537537
called with an object wrapping a ``Derived`` instance. Wrapped
538538
member functions of class ``T`` are treated as though they have an
539539
implicit first argument of ``T&``, so these conversions are
540-
neccessary to allow the base class methods to be called for derived
540+
necessary to allow the base class methods to be called for derived
541541
objects.
542542

543543
Of course it's possible to derive new Python classes from wrapped C++
@@ -650,7 +650,7 @@ Things to notice about the dispatcher class:
650650
called on an object of type ``BaseWrap``, since it overrides ``f``.
651651

652652
Admittedly, this formula is tedious to repeat, especially on a project
653-
with many polymorphic classes; that it is neccessary reflects
653+
with many polymorphic classes; that it is necessary reflects
654654
limitations in C++'s compile-time reflection capabilities. Several
655655
efforts are underway to write front-ends for Boost.Python which can
656656
generate these dispatchers (and other wrapping code) automatically.

doc/new-conversions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ <h3>Eliminating Redundancy</h3>
260260
<ol>
261261
<li> Treat built-in types specially: when unwrapping a value or
262262
constant reference to one of these, use a value for the target
263-
type. It will bind to a const reference if neccessary, and more
263+
type. It will bind to a const reference if necessary, and more
264264
importantly, avoids having to dynamically allocate room for
265265
an lvalue of types which can be cheaply copied.
266266
<li>

doc/v2/errors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h2><a name="functions"></a>Functions</h2>
126126

127127
<dt><b>Rationale:</b> At inter-language boundaries it is important to
128128
ensure that no C++ exceptions escape, since the calling language
129-
usually doesn't have the equipment neccessary to properly unwind the
129+
usually doesn't have the equipment necessary to properly unwind the
130130
stack. Use <code>handle_exception</code> to manage exception
131131
translation whenever your C++ code is called directly from the Python
132132
API. This is done for you automatically by the usual function wrapping

doc/v2/type_id.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h4><a name="type_infospec-ctors">Class <code>type_info</code>
121121
<dt><b>Effects:</b> constructs a <code>type_info</code> object which
122122
identifies the same type as its argument.</dt>
123123

124-
<dt><b>Rationale:</b> Since it is occasionally neccessary to make an
124+
<dt><b>Rationale:</b> Since it is occasionally necessary to make an
125125
array of <code>type_info</code> objects a benign default argument is
126126
supplied. <span class="c3"><b>Note:</b></span> this constructor does
127127
<i>not</i> correct for non-conformance of compiler

include/boost/python/converter/registry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct registration;
1717
// This namespace acts as a sort of singleton
1818
namespace registry
1919
{
20-
// Get the registration corresponding to the type, creating it if neccessary
20+
// Get the registration corresponding to the type, creating it if necessary
2121
BOOST_PYTHON_DECL registration const& lookup(type_info);
2222

2323
// Return a pointer to the corresponding registration, if one exists

include/boost/python/object/iterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct iterator_range
109109
namespace detail
110110
{
111111
// Get a Python class which contains the given iterator and
112-
// policies, creating it if neccessary. Requires: NextPolicies is
112+
// policies, creating it if necessary. Requires: NextPolicies is
113113
// default-constructible.
114114
template <class Iterator, class NextPolicies>
115115
object demand_iterator_class(char const* name, Iterator* = 0, NextPolicies const& policies = NextPolicies())

src/object/inheritance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ namespace
203203
return &*p;
204204
}
205205

206-
// Get the entry for a type, inserting if neccessary
206+
// Get the entry for a type, inserting if necessary
207207
inline type_index_t::iterator demand_type(class_id type)
208208
{
209209
type_index_t::iterator p = type_position(type);
@@ -218,7 +218,7 @@ namespace
218218
return type_index().insert(p, boost::make_tuple(type, v, dynamic_id_function(0)));
219219
}
220220

221-
// Map a two types to a vertex in the graph, inserting if neccessary
221+
// Map a two types to a vertex in the graph, inserting if necessary
222222
typedef std::pair<type_index_t::iterator, type_index_t::iterator>
223223
type_index_iterator_pair;
224224

0 commit comments

Comments
 (0)