aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/sword.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-09 17:10:32 +0200
committerHampusM <hampus@hampusmat.com>2022-06-09 17:10:32 +0200
commita5d218fd1a7e842b7ea4ac7809b0ba89856a5205 (patch)
tree77021d322f45a2b1d17bc79dc6189df1562ba2ea /examples/basic/src/sword.hpp
parent58762e6e029d71ed72b094ec2d5831b6cac4e27b (diff)
docs: fix basic example code style
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;