Skip to content

Commit bdf89c4

Browse files
authored
Merge pull request #1412 from Buckram123/patch-1
Update comment to use to_cow_str() for `class_id()`
2 parents faa03b0 + d4eab25 commit bdf89c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/obj/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ where
3636

3737
/// Globally unique class ID, linked to the name under which the class is registered in Godot.
3838
///
39-
/// The name may deviate from the Rust struct name: `HttpRequest::class_id().as_str() == "HTTPRequest"`.
39+
/// The name may deviate from the Rust struct name: `HttpRequest::class_id().to_cow_str() == "HTTPRequest"`.
4040
fn class_id() -> ClassId;
4141

4242
#[deprecated = "Renamed to `class_id()`"]

0 commit comments

Comments
 (0)