The function string::LastIndexOf has a copy-paste mistake in the docs in the line that Prints the result.
Also, the function seems to be accidentally not linked on the c++ side. I would assume it is a quick and easy fix.
\brief Finds last 'sample' in 'str'. Returns -1 when not found
\param sample \p string Finding string
\return \p int - Returns position where \p sample starts, or -1 when \p sample not found
string str = "Hello World";
Print( str.LastIndexOf( "l" ) );
proto native int LastIndexOf(string sample);