Skip to content

Commit

Permalink
Merge pull request nannou-org#789 from elpiel/patch-1
Browse files Browse the repository at this point in the history
osc-sender - fix link typo
  • Loading branch information
mitchmindtree authored Oct 11, 2021
2 parents 1646586 + d702dde commit e1cad51
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 e1cad51

Please sign in to comment.