Skip to content

Commit

Permalink
osc-sender - fix link typo
Browse files Browse the repository at this point in the history
  • Loading branch information
elpiel authored Aug 28, 2021
1 parent 1646586 commit d702dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/tutorials/osc/osc-sender.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ let target_addr = format!("{}:{}", "127.0.0.1", port);
# }
```

Lastly, we need to bind our OSC sender to the network socket. This isn't always successful, so we are attaching the `expect()`-method (read more about [expect here](https://doc.rust-lang.org/std/option/enum.Option.html# method.expect)) to post an error message if it is not successful. If it is successful, the `.connect(target_addr)`-method is used to connect the sender to the target address. Again, this may be unsuccesful so we use the `expect()`-method on the result of that operation as well.
Lastly, we need to bind our OSC sender to the network socket. This isn't always successful, so we are attaching the `expect()`-method (read more about [`expect()` here](https://doc.rust-lang.org/std/option/enum.Option.html#method.expect)) to post an error message if it is not successful. If it is successful, the `.connect(target_addr)`-method is used to connect the sender to the target address. Again, this may be unsuccesful so we use the `expect()`-method on the result of that operation as well.

```rust,no_run
# #![allow(unused_variables)]
Expand Down

0 comments on commit d702dde

Please sign in to comment.