Skip to content

Commit c80868e

Browse files
authored
correcting another mistake in an example
copy_pointer -> copy_borrowed_ptr
1 parent 03949f5 commit c80868e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_borrowck/borrowck/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ Here is a concrete example of a bug this rule prevents:
633633

634634
```rust
635635
// Test region-reborrow-from-shorter-mut-ref.rs:
636-
fn copy_pointer<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T {
636+
fn copy_borrowed_ptr<'a,'b,T>(x: &'a mut &'b mut T) -> &'b mut T {
637637
&mut **p // ERROR due to clause (1)
638638
}
639639
fn main() {

0 commit comments

Comments
 (0)