Skip to content

Commit

Permalink
Rollup merge of rust-lang#30439 - swooster:swooster-nomicon-patch-1, …
Browse files Browse the repository at this point in the history
…r=steveklabnik

The Rustonomicon's Lifetimes chapter uses the idiom "big ask", which is obscure compared to "tall order" (check [Google ngrams](https://books.google.com/ngrams/graph?content=big+ask%2C+tall+order&year_start=1800)). Also, it's easily mistaken for a typo; either "a big task" or "a big thing to ask" could plausibly work there.

r? @steveklabnik
  • Loading branch information
steveklabnik committed Dec 17, 2015
2 parents 6565bc2 + fc86218 commit 8cd2374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/nomicon/lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ This signature of `as_str` takes a reference to a u32 with *some* lifetime, and
promises that it can produce a reference to a str that can live *just as long*.
Already we can see why this signature might be trouble. That basically implies
that we're going to find a str somewhere in the scope the reference
to the u32 originated in, or somewhere *even earlier*. That's a bit of a big
ask.
to the u32 originated in, or somewhere *even earlier*. That's a bit of a tall
order.

We then proceed to compute the string `s`, and return a reference to it. Since
the contract of our function says the reference must outlive `'a`, that's the
Expand Down

0 comments on commit 8cd2374

Please sign in to comment.