Skip to content

Commit cd8b3e4

Browse files
committed
doc: fix from_sync_fn using deprecated Result<T> return
1 parent 8f47818 commit cd8b3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/builtin/callable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl Callable {
282282
/// # use godot::prelude::*;
283283
/// let callable = Callable::from_sync_fn("sum", |args: &[&Variant]| {
284284
/// let sum: i32 = args.iter().map(|arg| arg.to::<i32>()).sum();
285-
/// Ok(sum.to_variant())
285+
/// sum
286286
/// });
287287
/// ```
288288
#[cfg(feature = "experimental-threads")]

0 commit comments

Comments
 (0)