Skip to content

Commit e08ee8c

Browse files
bors[bot]halzy
andauthored
Merge #707
707: fixing documentation example r=toasteater a=halzy `PropertyBuilder` has `with_default` not `default`. Co-authored-by: Benjamin Halsted <bg@hlstd.com>
2 parents 6d694bb + da8bc96 commit e08ee8c

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)