Skip to content

Commit

Permalink
fix for review
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Mar 2, 2023
1 parent 8cec6b9 commit a4807bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

/**
* @enum RESULT
* @brief Rust でいうところの Result<T, E> のような,汎用的な返り値用 enum
* @brief Rust でいうところの Result<(), ()> のような,汎用的な成功したかどうかだけの返り値用 enum
* @note uint8_t を想定
*/
typedef enum
{
RESULT_OK = 0, //!< OK
RESULT_OK = 0, //!< OK (C2A では慣習的に OK 系列挙子は 0 を使うので,万が一他の enum に cast されても事故が起きにくいように)
RESULT_ERR //!< Error or NG
} RESULT;

Expand Down

0 comments on commit a4807bc

Please sign in to comment.