godotengine / godotengine/godot-docs

Documentation Inconsistency: Incorrect method count description in GDExtension C++ example page

Open
#11,488 0 comments 0 reactions 0 assignees View on GitHub
area:manual bug topic:gdextension
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Godot 4.5**

**Issue description:**

I found an inconsistency between the documentation and the code example on the page:

"we have our constructor and destructor defined, but there are two other functions that will likely look familiar to some, and one new method."

gdextension_cpp_example/src/gdexample.h
```c++
class GDExample : public Sprite2D {
//...
static void _bind_methods(); // The "new" method?
GDExample(); // Constructor
~GDExample(); // Destructor
void _process(double delta) override; // One "familiar" method
};
```

This creates a confusion between the text (which counts 5 methods) and the actual code (which shows 4). The description of "two other familiar functions and one new method" does not accurately match the provided example.

https://docs.godotengine.org/en/4.5/tutorials/scripting/cpp/gdextension_cpp_example.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.