docs: mark functions as part of object not a trait
@@ -181,8 +181,10 @@ fn find_function(name: &str, env: &Env) -> String {
if let Some((obj_info, fn_info)) = is_obj_func {
let sym = symbols.by_tid(obj_info.type_id).unwrap(); // we are sure the object exists
- let (type_name, visible_type_name) =
- if obj_info.final_type || fn_info.kind == FunctionKind::Constructor {
+ let (type_name, visible_type_name) = if obj_info.final_type
+ || fn_info.kind == FunctionKind::Constructor
+ || fn_info.kind == FunctionKind::Function
+ {
(obj_info.name.clone(), obj_info.name.clone())
} else {
let type_name = if fn_info.status == GStatus::Generate {
