rspec/rules/S935/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

5 lines
385 B
Plaintext

Every call to a function with a non-void return type is expected to return some value. Including a return path in a non-void function that does not explicitly return a value results in undefined behavior.
Conversely, every call to a function with a void return type is expected to not return any value. Returning a value from a void function probably indicates a programming error.