diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-10-29 13:52:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-10-29 13:52:05 -0700 |
| commit | ed48e76e772b6684b9d5e4ce753c3f493c230d62 (patch) | |
| tree | fa27f669f15234f46d8a217ad114fa8713254681 | |
| parent | 24e10fe3003e77ab3e9c782fafc97ce38eab16f0 (diff) | |
Fix typo in borrowed pointer tutorial. Closes #3876
| -rw-r--r-- | doc/tutorial-borrowed-ptr.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial-borrowed-ptr.md b/doc/tutorial-borrowed-ptr.md index df5fb9365f6..4866f7b8f5e 100644 --- a/doc/tutorial-borrowed-ptr.md +++ b/doc/tutorial-borrowed-ptr.md @@ -698,7 +698,7 @@ is B, the function body. Both of the second two parameters `a` and `b` share the same lifetime, `r`, which is a lifetime parameter of `select_based_on_unit_circle()`. The caller will infer the intersection of these two lifetimes as the lifetime of the returned -value, and hence the return value of `shape()` will be assigned a +value, and hence the return value of `select()` will be assigned a lifetime of B. This will in turn lead to a compilation error, because `select_based_on_unit_circle()` is supposed to return a value with the lifetime `r`. |
