Skip to content

Commit 791565d

Browse files
committed
Merge pull request godotengine#112486 from Calinou/doc-globalscope-instance-from-id-fix-code
Fix GDScript code sample for `@GlobalScope.instance_from_id()`
2 parents 5f62290 + 5243016 commit 791565d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/@GlobalScope.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
func _ready():
501501
var id = get_instance_id()
502502
var instance = instance_from_id(id)
503-
print(instance.foo) # Prints "water"
503+
print(instance.drink) # Prints "water"
504504
[/gdscript]
505505
[csharp]
506506
public partial class MyNode : Node

0 commit comments

Comments
 (0)