@@ -85,7 +85,7 @@ <h4><a name="slice-spec-synopsis"></a>Class <code>slice</code> synopsis</h4>
8585 object stop();
8686 object step();
8787
88- // The return type of slice::get_indicies ()
88+ // The return type of slice::get_indices ()
8989 template <typename RandomAccessIterator>
9090 struct range
9191 {
@@ -96,7 +96,7 @@ <h4><a name="slice-spec-synopsis"></a>Class <code>slice</code> synopsis</h4>
9696
9797 template <typename RandomAccessIterator>
9898 range<RandomAccessIterator>
99- get_indicies (
99+ get_indices (
100100 RandomAccessIterator const& begin,
101101 RandomAccessIterator const& end);
102102 };
@@ -164,7 +164,7 @@ <h4><a name="slice-spec-observers"></a>Class <code>slice</code>
164164< pre >
165165template <typename RandomAccessIterator>
166166slice::range<RandomAccessIterator>
167- slice::get_indicies (
167+ slice::get_indices (
168168 RandomAccessIterator const& begin,
169169 RandomAccessIterator const& end) const;
170170</ pre >
@@ -173,16 +173,16 @@ <h4><a name="slice-spec-observers"></a>Class <code>slice</code>
173173Iterators that form a half-open range.</ dt >
174174 < dt > < b > Effects:</ b > Create a RandomAccessIterator pair that defines a
175175fully-closed range within the [begin,end) range of its arguments.
176- This function translates this slice's indicies while accounting for the
177- effects of any PyNone or negative indicies , and non-singular step sizes.</ dt >
176+ This function translates this slice's indices while accounting for the
177+ effects of any PyNone or negative indices , and non-singular step sizes.</ dt >
178178 < dt > < b > Returns:</ b > a slice::range
179179that has been initialized with a non-zero value of step and a pair of
180180RandomAccessIterators that point within the range of this functions
181181arguments and define a closed interval.</ dt >
182182 < dt > < b > Throws:</ b > < a href ="definitions.html#raise "> Raises</ a > a Python < code > TypeError</ code > exception if any of this slice's arguments
183183are neither references to < code > PyNone</ code > nor convertible to < code > int</ code > . Throws
184184< code > std::invalid_argument</ code > if the resulting range would be empty. You
185- should always wrap calls to < code > slice::get_indicies ()</ code >
185+ should always wrap calls to < code > slice::get_indices ()</ code >
186186within < code > try { ...; } catch (std::invalid_argument) {}</ code > to
187187handle this case and take appropriate action.</ dt >
188188 < dt > < b > Rationale</ b > : closed-interval: If
@@ -221,7 +221,7 @@ <h2><a name="examples"></a><b>Examples</b></h2>
221221{
222222 slice::range<std::vector<double>::const_iterator> bounds;
223223 try {
224- bounds = index.get_indicies <>(Foo.begin(), Foo.end());
224+ bounds = index.get_indices <>(Foo.begin(), Foo.end());
225225 }
226226 catch (std::invalid_argument) {
227227 return 0.0;
0 commit comments