Skip to content

Commit

Permalink
Fix code snippet in socket.inko tutorial
Browse files Browse the repository at this point in the history
Commit `a9c7bd726` changed the type of `SocketAddress.ip`,
from an `Option[IpAddress]` to an `IpAddress`.
This commit adapts the tutorial to the new `IpAddress` API.

Changelog: fixed
  • Loading branch information
evomassiny authored and yorickpeterse committed Dec 31, 2024
1 parent 505a78e commit 1152a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/getting-started/sockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type async Main {
let client = UdpSocket.new(IpAddress.v4(0, 0, 0, 0), port: 0).get
let addr = server.local_address.get
client.connect(addr.ip.get, addr.port).get
client.connect(addr.ip, addr.port).get
client.write_string('Hello, world!').get
let bytes = ByteArray.new
Expand Down

0 comments on commit 1152a57

Please sign in to comment.