We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4867fa7 commit 0365205Copy full SHA for 0365205
posts/inside-rust/2019-11-23-const-if-match.md
@@ -123,10 +123,10 @@ fn main() {
123
}
124
```
125
126
-However, it is sometimes okay for a `const` to contain a *type* that allows
127
-interior mutability, as long as we can prove that the actual *value* of that
128
-type does not. This is particularly useful for `enum`s with a "unit variant"
129
-(e.g., `Option::None`).
+However, it is sometimes okay for a `const` to contain a reference to a *type*
+that may have interior mutability, as long as we can prove that the actual
+*value* of that type does not. This is particularly useful for `enum`s with a
+"unit variant" (e.g., `Option::None`).
130
131
```rust
132
const NO_CELL: Option<&std::cell::Cell<i32>> = None; // OK
0 commit comments