Skip to content

Commit 75ed5d3

Browse files
committed
Fix typos
1 parent 27c9f21 commit 75ed5d3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

016-algorithm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ auto print_if_le_100 = []( auto first, auto last )
8181
if ( *iter <= 100 )
8282
std::cout << *iter ;
8383
}
84-
} ;
84+
} ;
8585

8686

8787
// 値を2倍して出力
@@ -91,7 +91,7 @@ auto print_twice = []( auto first, auto last )
9191
{ // 特別な処理
9292
std::cout << 2 * (*iter) ;
9393
}
94-
} ;
94+
} ;
9595

9696

9797
// 値を出力するたびに改行を出力
@@ -101,7 +101,7 @@ auto print_with_newline = []( auto first, auto last )
101101
{ // 特別な処理
102102
std::cout << *iter << "\n"s ;
103103
}
104-
} ;
104+
} ;
105105
~~~
106106

107107
これを見ると、for文によるイテレーターのループは全く同じコードだとわかる。

019-operator-overloading.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ struct fractional
373373
// デリゲートコンストラクター
374374
fractional( int num )
375375
: fractional( num, 1 )
376-
{ }
377-
}
376+
{ }
377+
} ;
378378
~~~
379379
380380
`デリゲートコンストラクター`は初期化処理を別のコンストラクターにデリゲート(丸投げ)する。丸投げ先のコンストラクターの初期化処理が終わり次第、デリゲートコンストラクターの関数の本体が実行される。
@@ -669,7 +669,7 @@ int main()
669669
{
670670
X x ;
671671
Y y ;
672-
672+
673673
// OK
674674
x + y ;
675675

0 commit comments

Comments
 (0)