File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -67,4 +67,4 @@ Rust attributes are used for a number of different things. There is a full list
6767of attributes [ in the reference] [ reference ] . Currently, you are not allowed to
6868create your own attributes, the Rust compiler defines them.
6969
70- [ reference ] : reference.html#attributes
70+ [ reference ] : ../ reference.html#attributes
Original file line number Diff line number Diff line change @@ -19,18 +19,16 @@ this reason.
1919# ` static `
2020
2121Rust provides a ‘global variable’ sort of facility in static items. They’re
22- similar to [ constants] [ const ] , but static items aren’t inlined upon use. This
23- means that there is only one instance for each value, and it’s at a fixed
24- location in memory.
22+ similar to constants, but static items aren’t inlined upon use. This means that
23+ there is only one instance for each value, and it’s at a fixed location in
24+ memory.
2525
2626Here’s an example:
2727
2828``` rust
2929static N : i32 = 5 ;
3030```
3131
32- [ const ] : const.html
33-
3432Unlike [ ` let ` ] [ let ] bindings, you must annotate the type of a ` static ` .
3533
3634[ let ] : variable-bindings.html
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Raw pointers are useful for FFI: Rust’s `*const T` and `*mut T` are similar to
8080C’s ` const T* ` and ` T* ` , respectfully. For more about this use, consult the
8181[ FFI chapter] [ ffi ] .
8282
83- [ ffi ] : ffi.md
83+ [ ffi ] : ffi.html
8484
8585# References and raw pointers
8686
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ Rust has a feature called ‘`static mut`’ which allows for mutable global sta
101101Doing so can cause a data race, and as such is inherently not safe. For more
102102details, see the [ static] [ static ] section of the book.
103103
104- [ static ] : static.html
104+ [ static ] : const-and- static.html#static
105105
106106## Dereference a raw pointer
107107
You can’t perform that action at this time.
0 commit comments