Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc comment for exception::line_number() #901

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Fix doc comment for exception::line_number() #901

merged 1 commit into from
Jun 4, 2024

Conversation

SakuGlumoff
Copy link
Contributor

The documentation comment for exception::line_number() in include/etl/exception.h states falsely that the return type for the function is a const char*. It should state that the return type is numeric_type, which is an int. So change the documentation comment to reflect that the return type is an int.

I know that this is a small issue but when I'm setting up error handling for ETL it just irks me to have my IDE report false data.

The documentation comment for `exception::line_number()` in
`include/etl/exception.h` states falsely that the return type for
the function is a `const char*`.

It should state that the return type is `numeric_type`,
which is an `int`.

So change the documentation comment to reflect that the return type is
an `int`.
Copy link

Review changes with SemanticDiff.

@jwellbelove jwellbelove merged commit 496c8a2 into ETLCPP:master Jun 4, 2024
@SakuGlumoff SakuGlumoff deleted the fix-comment branch June 5, 2024 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants