Skip to content

Commit de10a88

Browse files
committed
Remove a redundant "still"
1 parent 632ea50 commit de10a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2024-10-17-Rust-1.82.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub fn unwrap_without_panic<T>(x: Result<T, Infallible>) -> T {
221221

222222
This works with empty types such as a variant-less `enum Void {}`, or structs and enums with a visible empty field and no `#[non_exhaustive]` attribute. It will also be particularly useful in combination with the never type `!`, although that type is still unstable at this time.
223223

224-
There are still some cases where empty patterns must still be written. For reasons related to uninitialized values and unsafe code, omitting patterns is not allowed if the empty type is accessed through a reference, pointer, or union field:
224+
There are some cases where empty patterns must still be written. For reasons related to uninitialized values and unsafe code, omitting patterns is not allowed if the empty type is accessed through a reference, pointer, or union field:
225225

226226
```rust
227227
pub fn unwrap_ref_without_panic<T>(x: &Result<T, Infallible>) -> &T {

0 commit comments

Comments
 (0)