b4b82a500c
This required two changes in parallel. As a first and obvious step it removes a check that skipped emptys lines during documentation loading, but it was also necessary to refactore the `get_comment_lines()` utility method as a second step. This second refactoring was necessary as each line in a doc comment is trimmed and transformed in its own doc attribute. The attribute of an empty line therefore contains an empty string as value. If we now call `lines()` on such an empty string we end up with an empty iterator as the method is internally configured to ignore trailing empty lines.
13 lines
362 B
Rust
13 lines
362 B
Rust
/// The root of all evil.
|
|
///
|
|
/// But at least it contains some more documentation as someone would expect
|
|
/// from a simple test case like this.
|
|
///
|
|
/// # Hint
|
|
///
|
|
/// Always ensure that everything is properly documented, even if you feel lazy.
|
|
/// **Sometimes** it is also helpful to include some markdown formatting.
|
|
#[no_mangle]
|
|
pub extern "C" fn root() {
|
|
}
|