Skip to content

Commit 9c07d1f

Browse files
committed
---
yaml --- r: 225242 b: refs/heads/stable c: 2b3354c h: refs/heads/master v: v3
1 parent 052a8f0 commit 9c07d1f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 49597fcbf26736ac2b2f7d6beab27f42a44bf306
32+
refs/heads/stable: 2b3354cbf8cc8eba08cceeda3deb615d6329185f
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/doc/trpl/strings.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ instead of `&str`. For example, [`TcpStream::connect`][connect] has a parameter
5454
of type `ToSocketAddrs`. A `&str` is okay but a `String` must be explicitly
5555
converted using `&*`.
5656

57-
```rust
57+
```rust,no_run
58+
use std::net::TcpStream;
59+
5860
TcpStream::connect("192.168.0.1:3000"); // &str parameter
5961
6062
let addr_string = "192.168.0.1:3000".to_string();

0 commit comments

Comments
 (0)