aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/sword.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/sword.hpp')
-rw-r--r--examples/basic/src/sword.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic/src/sword.hpp b/examples/basic/src/sword.hpp
index 25695b7..5ee3fef 100644
--- a/examples/basic/src/sword.hpp
+++ b/examples/basic/src/sword.hpp
@@ -7,7 +7,7 @@
class Sword : public IWeapon, public yacppdic::AutoWirable<IWeapon, Sword>
{
public:
- int get_strength() const noexcept override;
+ [[nodiscard]] auto get_strength() const noexcept -> int override;
private:
int _strength = 30;