Skip to content

Commit 86bd10c

Browse files
authored
Merge pull request #212 from fullermd/tpyo
Fix typo in struct name.
2 parents 4a3abbb + ea36345 commit 86bd10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/predictability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ does take arguments, like [`Box::new`] which is passed the value to place in the
183183

184184
Some types' constructors, most notably I/O resource types, use distinct naming
185185
conventions for their constructors, as in [`File::open`], [`Mmap::open`],
186-
[`TcpStream::connect`], and [`UpdSocket::bind`]. In these cases names are chosen
186+
[`TcpStream::connect`], and [`UdpSocket::bind`]. In these cases names are chosen
187187
as appropriate for the domain.
188188

189189
Often there are multiple ways to construct a type. It's common in these cases
@@ -232,7 +232,7 @@ Either one may be implemented in terms of the other.
232232
[`Mmap::open`]: https://docs.rs/memmap/0.5.2/memmap/struct.Mmap.html#method.open
233233
[`Mmap::open_with_offset`]: https://docs.rs/memmap/0.5.2/memmap/struct.Mmap.html#method.open_with_offset
234234
[`TcpStream::connect`]: https://doc.rust-lang.org/stable/std/net/struct.TcpStream.html#method.connect
235-
[`UpdSocket::bind`]: https://doc.rust-lang.org/stable/std/net/struct.UdpSocket.html#method.bind
235+
[`UdpSocket::bind`]: https://doc.rust-lang.org/stable/std/net/struct.UdpSocket.html#method.bind
236236
[`std::io::Error::new`]: https://doc.rust-lang.org/std/io/struct.Error.html#method.new
237237
[`std::io::Error::from_raw_os_error`]: https://doc.rust-lang.org/std/io/struct.Error.html#method.from_raw_os_error
238238
[`Box::new`]: https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new

0 commit comments

Comments
 (0)