diff options
| author | GAJaloyan <georges-axel.jaloyan@ens.fr> | 2017-03-27 16:17:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-27 16:17:08 +0200 |
| commit | c80868e3b348f00d316ca411f9f3f2f3feb7e6a9 (patch) | |
| tree | b516cb2a304701ce8e10440b021b5075770841ff | |
| parent | 03949f5b5caa330375bb33d7b91b5fc24bd8c92e (diff) | |
| download | rust-c80868e3b348f00d316ca411f9f3f2f3feb7e6a9.tar.gz rust-c80868e3b348f00d316ca411f9f3f2f3feb7e6a9.zip | |
correcting another mistake in an example
copy_pointer -> copy_borrowed_ptr
| -rw-r--r-- | src/librustc_borrowck/borrowck/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_borrowck/borrowck/README.md b/src/librustc_borrowck/borrowck/README.md index 29b007a7499..034b7cbadd9 100644 --- a/src/librustc_borrowck/borrowck/README.md +++ b/src/librustc_borrowck/borrowck/README.md @@ -633,7 +633,7 @@ Here is a concrete example of a bug this rule prevents: ```rust // Test region-reborrow-from-shorter-mut-ref.rs: -fn copy_pointer<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T { +fn copy_borrowed_ptr<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T { &mut **p // ERROR due to clause (1) } fn main() { |
