mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(game): mark getFront method as [[nodiscard]]
This commit is contained in:
@@ -87,7 +87,7 @@ namespace UNO::GAME {
|
|||||||
/**
|
/**
|
||||||
* @return 牌堆中最上方的牌
|
* @return 牌堆中最上方的牌
|
||||||
*/
|
*/
|
||||||
Card getFront() const;
|
[[nodiscard]] Card getFront() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user