Skip to content

Commit

Permalink
Merge pull request EzoeRyou#24 from kajyuuen/fix-typo-025
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
EzoeRyou authored Dec 6, 2018
2 parents 3ad42d1 + e0067c0 commit 8d52610
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions 025-array-iterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ struct array_iterator
Array & a ;
std::size_t i ;

array_iterator_begin( Array & a, std::size_t i )
array_iterator( Array & a, std::size_t i )
: a( a ), i(i) { }

//いま参照している要素へのリファレンスを返す
Array::reference operator *()
{
Expand All @@ -420,13 +420,13 @@ struct array
// 先頭要素のイテレーター
iterator begin()
{
return array( *this, 0 ) ;
return array_iterator( *this, 0 ) ;
}
// 末尾要素へのイテレーター
iterator end()
{
return array( *this, N-1 ) ;
return array_iterator( *this, N-1 ) ;
}
} ;
~~~
Expand Down
2 changes: 1 addition & 1 deletion 026-exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ int main()
~~~cpp
int main()
{
std::array<1,int> a = {0} ;
std::array<int, 1> a = {0} ;
try { a[1000] ; }
catch( std::out_of_range & e )
Expand Down

0 comments on commit 8d52610

Please sign in to comment.