Skip to content

Commit fe2ac5c

Browse files
committed
clarify 'no fields'
1 parent a8e5377 commit fe2ac5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
//! [representation guarantees][opt-rep] (let's call that type `I`), and the *other* type must meet
236236
//! all of the following conditions:
237237
//! * Is a zero-sized type with alignment 1 (a "1-ZST").
238-
//! * Has no fields.
238+
//! * Is either a struct/tuple with no fields, or an enum with no variants.
239239
//! * Does not have the `#[non_exhaustive]` attribute.
240240
//!
241241
//! If that is the case, then `Result<T, E>` has the same size, alignment, and [function call ABI]

0 commit comments

Comments
 (0)