diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-22 18:08:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-22 18:08:21 +0200 |
| commit | 9abc9361fa78374c748c0188008cc71f1c25708f (patch) | |
| tree | 8d55c264cc57f5cefaefdaa2c2ab6162dff297af /src/test/ui/thinlto | |
| parent | fba5ed355a30ae7176309bbbe8ff403943fc72bc (diff) | |
| parent | e641fb47c472e767074a773c6a88cbc9873e63e0 (diff) | |
| download | rust-9abc9361fa78374c748c0188008cc71f1c25708f.tar.gz rust-9abc9361fa78374c748c0188008cc71f1c25708f.zip | |
Rollup merge of #61029 - blkerby:minimum_spanning_tree, r=alexcrichton
Simplify RefCell minimum_spanning_tree example This simplifies the implementation of the `minimum_spanning_tree` example of `RefCell` in the `cell` module-level docs, avoiding an unnecessary recursive call. This also eliminates the need for a block to contain the scope of the borrow in this example. But since that use of a block served an important didactic purpose, we make up for this by instead introducing a block in the initial, simpler example of `RefCell`, where the point will hopefully be conveyed to the reader more easily.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
