From: Alexis Laferrière Date: Wed, 26 Nov 2014 16:45:43 +0000 (-0500) Subject: lib/cpp: add missing doc X-Git-Tag: v0.6.11~8^2~7 X-Git-Url: http://nitlanguage.org lib/cpp: add missing doc Signed-off-by: Alexis Laferrière --- diff --git a/lib/cpp.nit b/lib/cpp.nit index 4eeb2a5..bd113dd 100644 --- a/lib/cpp.nit +++ b/lib/cpp.nit @@ -24,10 +24,12 @@ extern class CppString in "C++" `{ std::string* `} end redef class Text + # Get `self` as a `CppString` fun to_cpp_string: CppString do return to_cstring.to_cpp_string end redef class NativeString + # Get `self` as a `CppString` fun to_cpp_string: CppString in "C++" `{ return new std::string(recv); `}