Skip to content

Commit d514048

Browse files
committed
Update hints in Go and Rust config.yml files for TCP connection handling to improve clarity by using method names in code formatting.
1 parent 7c74d25 commit d514048

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

solutions/go/02-rg2/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
hints:
22
- title_markdown: "How do I access the client's TCP connection?"
33
body_markdown: |-
4-
This is returned by the [Listerner.Accept()](https://pkg.go.dev/net#Listener.Accept) method.
4+
This is returned by the [`Accept()`](https://pkg.go.dev/net#Listener.Accept) method.
55
66
```go
77
# The return value value includes:
@@ -14,7 +14,7 @@ hints:
1414
1515
- title_markdown: "How do I send a response to the client?"
1616
body_markdown: |-
17-
Use the [Conn.Write()](https://pkg.go.dev/net#Conn.Write) method on the client's connection:
17+
Use the [`Write()`](https://pkg.go.dev/net#Conn.Write) method on the client's connection:
1818
1919
```go
2020
# Send the response to the client

solutions/rust/02-rg2/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
hints:
22
- title_markdown: "How do I access the client's TCP connection?"
33
body_markdown: |-
4-
This is returned by the [`TcpListener::incoming()`](https://doc.rust-lang.org/std/net/struct.TcpListener.html#method.into_incoming) method.
4+
This is returned by the [`incoming()`](https://doc.rust-lang.org/std/net/struct.TcpListener.html#method.into_incoming) method.
55
66
```rust
77
# The return value is an iterator that provides a sequence of `TcpStream` objects.
@@ -12,7 +12,7 @@ hints:
1212
1313
- title_markdown: "How do I send a response to the client?"
1414
body_markdown: |-
15-
Use the [TcpStream::write_all()](https://doc.rust-lang.org/std/io/trait.Write.html#method.write_all) method on the client's connection:
15+
Use the [`write_all()`](https://doc.rust-lang.org/std/io/trait.Write.html#method.write_all) method on the client's connection:
1616
1717
```rust
1818
# Send the response to the client

0 commit comments

Comments
 (0)