mystor / rust-cpp

Embed C++ directly inside your rust code!
Apache License 2.0
802 stars 44 forks source link

cpp_class!() reverses lines of doc comments #52

Closed mad-s closed 5 years ago

mad-s commented 5 years ago

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");
ogoffart commented 5 years ago

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