Update extends.md (#1874)

typo: Bar reference gives Foo.
This commit is contained in:
Rich Murphey 2019-11-25 08:33:03 -06:00 committed by Alex Crichton
parent 0acece0c95
commit 181b10be3f

View File

@ -45,5 +45,5 @@ extern "C" {
let x: &Baz = ...;
let y1: &Bar = x.as_ref();
let y2: &Foo = x.as_ref();
let y2: &Foo = y1.as_ref();
```