From 9ddfbb1ae21b478dfce40f884889dd6d6b6ee69c Mon Sep 17 00:00:00 2001 From: Dominic van Berkel Date: Mon, 27 Apr 2015 12:21:26 +0200 Subject: [PATCH] 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. --- src/doc/trpl/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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