Skip to content

Commit db2bb31

Browse files
committed
fix typos and blanks
1 parent 0386212 commit db2bb31

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

polymorphism/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ As an alternative, the *definition* of `consume` could be in the header `include
171171

172172
## Testing
173173

174-
In this example, I use [µt](https://github.com/boost-ext/ut) as testing framework for no good reason. It looks promising and lightweight, and it was written by [Krzysztof Jusiak](https://github.com/krzysztof-jusiak) whom I adore for his outstanding C++ programming skills and his [C++ Tip of The Week](https://github.com/tip-of-the-week/cpp) collection of crazy C++ riddles.
174+
In this example, I use [µt](https://github.com/boost-ext/ut) as testing framework for no good reason. It looks promising and lightweight, and it was written by [Krzysztof Jusiak](https://github.com/krzysztof-jusiak) whom I adore for his outstanding C++ programming skills and his [C++ Tip of The Week](https://github.com/tip-of-the-week/cpp) collection of crazy C++ riddles.
175175

176176
The one-header version of it is pulled into the project via the CMake call
177177

polymorphism/include/polymorphism/impl_with_interface.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef POYMORPHISM_IMPL_WITH_INTERFACE_HPP
2-
#define POYMORPHISM_IMPL_WITH_INTERFACE_HPP
1+
#ifndef POLYMORPHISM_IMPL_WITH_INTERFACE_HPP
2+
#define POLYMORPHISM_IMPL_WITH_INTERFACE_HPP
33

44
// make the inteface defintion visible
55
#include <polymorphism/i_super_cool_features.hpp>
@@ -23,4 +23,4 @@ class Impl
2323

2424
} // namespace classic
2525

26-
#endif // POYMORPHISM_IMPL_WITH_INTERFACE_HPP
26+
#endif // POLYMORPHISM_IMPL_WITH_INTERFACE_HPP

polymorphism/include/polymorphism/impl_without_interface.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
2-
#define POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
1+
#ifndef POLYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
2+
#define POLYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
33

44
#include <polymorphism/has_super_cool_features.hpp>
55

@@ -12,7 +12,7 @@ class Impl {
1212
std::string s_ { "<default value>" }; // with default member initializer (C++11)
1313

1414
public:
15-
std::string coolFeature() const noexcept { return s_; }
15+
[[nodiscard]] std::string coolFeature() const noexcept { return s_; }
1616
void set(std::string s) noexcept
1717
{
1818
s_ = std::move(s);
@@ -25,4 +25,4 @@ static_assert(has_super_cool_features<Impl>,
2525

2626
} // namespace modern
2727

28-
#endif // POYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP
28+
#endif // POLYMORPHISM_IMPL_WITHOUT_INTERFACE_HPP

0 commit comments

Comments
 (0)