]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #60945 - blkerby:fill_buf_nll_doc_example, r=shepmaster
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 19 May 2019 00:31:44 +0000 (02:31 +0200)
committerGitHub <noreply@github.com>
Sun, 19 May 2019 00:31:44 +0000 (02:31 +0200)
commitf9d58c71883b54082971449643e8a194ee2622de
tree259bfd14f365fc7fd569f9fad5ead6620a3afd11
parent94da30728f605e3c68bbf5226d12a1dbd4234365
parent01cf36ebde50521993a61013487059be5f568c19
Rollup merge of #60945 - blkerby:fill_buf_nll_doc_example, r=shepmaster

Simplify BufRead::fill_buf doc example using NLL

With non-lexical lifetimes, in this example it is no longer necessary to use a block to end the borrow early.