Skip to content

Commit

Permalink
some small improvements in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
suomesta committed Sep 30, 2023
1 parent 4c95521 commit ba5a5a9
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion reference/chrono/duration/op_modulo.md
Expand Up @@ -67,7 +67,7 @@ int main()
std::cout << ms.count() << std::endl;
}

// duration / duration
// duration % duration
{
seconds s = seconds(8) % seconds(3);
std::cout << s.count() << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions reference/chrono/treat_as_floating_point.md
Expand Up @@ -36,13 +36,13 @@ int main()
// floating point Rep
static_assert(
treat_as_floating_point<duration<double, std::ratio<1, 30>>::rep>::value,
"duration<double, ratio<1, 30>> > can't become floating point"
"duration<double, ratio<1, 30>> > must be floating point"
);
// integer Rep
static_assert(
!treat_as_floating_point<milliseconds::rep>::value,
"seconds can't become floating point"
"milliseconds can't become floating point"
);
}
```
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_compare_3way.md
Expand Up @@ -28,7 +28,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_equal.md
Expand Up @@ -61,7 +61,6 @@ C++20以降、これらの演算子により以下の演算子が使用可能に
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_greater.md
Expand Up @@ -32,7 +32,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_greater_equal.md
Expand Up @@ -32,7 +32,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_less.md
Expand Up @@ -33,7 +33,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_less_equal.md
Expand Up @@ -32,7 +32,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_minus.md
Expand Up @@ -52,7 +52,6 @@ namespace std {
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/iterator/move_iterator/op_not_equal.md
Expand Up @@ -47,7 +47,6 @@ C++20以降、この演算子は[`operator==`](op_equal.md)によって使用可
#include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <iterator>
int main()
Expand Down
1 change: 0 additions & 1 deletion reference/ranges/input_range.md
Expand Up @@ -23,7 +23,6 @@ namespace std::ranges {
## 例
```cpp example
#include <ranges>
#include <forward_list>
#include <iostream>
int main() {
Expand Down

0 comments on commit ba5a5a9

Please sign in to comment.