Skip to content

Commit e3d409b

Browse files
committed
Fix typos
1 parent 66f9c10 commit e3d409b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

025-array-iterator.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ struct array_iterator
396396
Array & a ;
397397
std::size_t i ;
398398

399-
array_iterator_begin( Array & a, std::size_t i )
399+
array_iterator( Array & a, std::size_t i )
400400
: a( a ), i(i) { }
401-
401+
402402
//いま参照している要素へのリファレンスを返す
403403
Array::reference operator *()
404404
{
@@ -420,13 +420,13 @@ struct array
420420
// 先頭要素のイテレーター
421421
iterator begin()
422422
{
423-
return array( *this, 0 ) ;
423+
return array_iterator( *this, 0 ) ;
424424
}
425425
426426
// 末尾要素へのイテレーター
427427
iterator end()
428428
{
429-
return array( *this, N-1 ) ;
429+
return array_iterator( *this, N-1 ) ;
430430
}
431431
} ;
432432
~~~

0 commit comments

Comments
 (0)