Fix broken markdown link

This commit is contained in:
Philipp Oppermann
2015-11-24 00:18:32 +01:00
parent 9b6bb7f895
commit 0a6a174e54

View File

@@ -296,7 +296,7 @@ To resolve it, we could use a [mutable static]. But then every read and write to
[mutable static]: https://doc.rust-lang.org/book/const-and-static.html#mutability [mutable static]: https://doc.rust-lang.org/book/const-and-static.html#mutability
[remove static mut]: https://internals.rust-lang.org/t/pre-rfc-remove-static-mut/1437 [remove static mut]: https://internals.rust-lang.org/t/pre-rfc-remove-static-mut/1437
But what are the alternatives? We could try to use a cell type like [RefCell] or even [UnsafeCell] to provide [interior mutability]. But these types aren't [Sync] (with good reason), so we can't use them in statics. But what are the alternatives? We could try to use a cell type like [RefCell] or even [UnsafeCell] to provide [interior mutability]. But these types aren't [Sync] \(with good reason), so we can't use them in statics.
[RefCell]: https://doc.rust-lang.org/nightly/core/cell/struct.RefCell.html [RefCell]: https://doc.rust-lang.org/nightly/core/cell/struct.RefCell.html
[UnsafeCell]: https://doc.rust-lang.org/nightly/core/cell/struct.UnsafeCell.html [UnsafeCell]: https://doc.rust-lang.org/nightly/core/cell/struct.UnsafeCell.html