diff options
| author | Dominic van Berkel <dominic@baudvine.net> | 2015-04-27 12:21:26 +0200 |
|---|---|---|
| committer | Dominic van Berkel <dominic@baudvine.net> | 2015-04-27 12:21:26 +0200 |
| commit | 9ddfbb1ae21b478dfce40f884889dd6d6b6ee69c (patch) | |
| tree | 93cbc2d07c61cc18f58505ba6a2ebbecd5cc2396 /src/doc | |
| parent | f4ab2b3a259a7a0418c6dd66dc9f11f20b0f6eff (diff) | |
| download | rust-9ddfbb1ae21b478dfce40f884889dd6d6b6ee69c.tar.gz rust-9ddfbb1ae21b478dfce40f884889dd6d6b6ee69c.zip | |
Adjusted intro error to match code
The error in the Brief Introduction shows the problematic line as "x.push(4)", while the example code uses a vector of strings.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/trpl/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/README.md b/src/doc/trpl/README.md index a892f67d571..280665af787 100644 --- a/src/doc/trpl/README.md +++ b/src/doc/trpl/README.md @@ -127,7 +127,7 @@ vector. When we try to compile this program, we get an error: ```text error: cannot borrow `x` as mutable because it is also borrowed as immutable - x.push(4); + x.push("foo"); ^ note: previous borrow of `x` occurs here; the immutable borrow prevents subsequent moves or mutable borrows of `x` until the borrow ends |
