Skip to content

Commit

Permalink
Changed signal declaration, so it fits the current docs (0.10.0) (#75)
Browse files Browse the repository at this point in the history
Squashing and merging #75 doc fix.
  • Loading branch information
tuto193 authored Jul 19, 2022
1 parent 023e4e0 commit f125d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/faq/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct SignalEmitter {
#[methods]
impl SignalEmitter {
fn register_signals(builder: &ClassBuilder<Self>) {
builder.add_signal(Signal { name: "updated", args: &[] });
builder.signal("updated").done();
}

fn new(_owner: &Node) -> Self {
Expand Down

0 comments on commit f125d2b

Please sign in to comment.