Skip to content

Commit 8d52610

Browse files
authored
Merge pull request EzoeRyou#24 from kajyuuen/fix-typo-025
Fix typos
2 parents 3ad42d1 + e0067c0 commit 8d52610

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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
~~~

026-exception.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ int main()
267267
~~~cpp
268268
int main()
269269
{
270-
std::array<1,int> a = {0} ;
270+
std::array<int, 1> a = {0} ;
271271
272272
try { a[1000] ; }
273273
catch( std::out_of_range & e )

0 commit comments

Comments
 (0)