We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc57510 commit 7562489Copy full SHA for 7562489
godot-core/src/builtin/string/string_name.rs
@@ -156,10 +156,9 @@ impl StringName {
156
/// [`Node::set_name()`][crate::classes::Node::set_name] takes `GString`, let's pass a `StringName`:
157
/// ```no_run
158
/// # use godot::prelude::*;
159
- /// let name = StringName::from("my cool node");
160
- ///
161
- /// let mut node = Node::new_alloc();
162
- /// node.set_name(name.arg());
+ /// let needle = StringName::from("str");
+ /// let haystack = GString::from("a long string");
+ /// let found = haystack.find(needle.arg());
163
/// ```
164
}
165
0 commit comments