mystor/rust-cpp

cpp_class!() reverses lines of doc comments

mad-s opened this issue · 1 comments

mad-s commented

Pretty much self explanatory. When documenting the following code, the lines of documentation are reversed (i.e. "This is line 2" appears before "This is line 1").

#[macro_use]
extern crate cpp;

cpp!{{
    class Test {
    };
}}

cpp_class!(
    /// This is line 1
    ///
    /// This is line 2
    pub unsafe struct Test as "Test");

Fixed with commit 98c1f5b
(Which unfortunately i pasted a wrong issue number in the commit message)