Skip to content

Commit 7961a18

Browse files
committed
Fixes typos in GDExtension tutorial
1 parent fc62754 commit 7961a18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/scripting/gdextension/gdextension_cpp_example.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ code:
499499
double speed;
500500
...
501501
void _process(double delta) override;
502-
void set_speed(double p_speed);
502+
void set_speed(const double p_speed);
503503
double get_speed() const;
504504
...
505505

@@ -515,7 +515,7 @@ showing the methods that have changed so don't remove anything we're omitting:
515515
ClassDB::add_property("GDExample", PropertyInfo(Variant::FLOAT, "speed", PROPERTY_HINT_RANGE, "0,20,0.01"), "set_speed", "get_speed");
516516
}
517517

518-
void GDExample::GDExample() {
518+
GDExample::GDExample() {
519519
time_passed = 0.0;
520520
amplitude = 10.0;
521521
speed = 1.0;
@@ -534,7 +534,7 @@ showing the methods that have changed so don't remove anything we're omitting:
534534

535535
...
536536

537-
void GDExample::set_speed(double p_speed) {
537+
void GDExample::set_speed(const double p_speed) {
538538
speed = p_speed;
539539
}
540540

0 commit comments

Comments
 (0)