diff options
| author | bors <bors@rust-lang.org> | 2014-01-18 20:31:47 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-18 20:31:47 -0800 |
| commit | 1a9641bf8e02230427a6e90e6662b879dec8caf2 (patch) | |
| tree | 24eb5905fbfb7852d53d2d11a11ea4ed8880f03d /src/rustllvm/RustWrapper.cpp | |
| parent | dbce62c6bbcb58e19e467f7aa4e15fc5628926d3 (diff) | |
| parent | 8f93d39c75ef7964ea1dfb5cd8155dd29e61b76b (diff) | |
| download | rust-1a9641bf8e02230427a6e90e6662b879dec8caf2.tar.gz rust-1a9641bf8e02230427a6e90e6662b879dec8caf2.zip | |
auto merge of #11567 : divtxt/rust/master, r=cmr
I found the boxes diagram in the tutorial misleading about how the enum worked. The current diagram makes it seem that there is a separate Cons struct when there is only one type of struct for the List type, and Nil is drawn almost as if it's not consuming memory. I'm aware of the optimization that happens for this enum which takes advantage of the fact that pointer cannot be null but this is an implementation detail and not the only one that applies here. I can add a note below the diagram mentioning this if you like.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
