Skip to content

Commit da8bc96

Browse files
committed
fixing documentation example
1 parent 6d694bb commit da8bc96

File tree

1 file changed

+1
-1
lines changed
  • gdnative-core/src/nativescript

1 file changed

+1
-1
lines changed

gdnative-core/src/nativescript/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl<C: NativeClass> ClassBuilder<C> {
313313
/// ```ignore
314314
/// builder
315315
/// .add_property("foo")
316-
/// .default(0.0)
316+
/// .with_default(0.0)
317317
/// .with_hint((-10.0..=30.0).into())
318318
/// .with_getter(MyType::get_foo)
319319
/// .with_setter(MyType::set_foo)

0 commit comments

Comments
 (0)