Skip to content

Commit

Permalink
Switch the order of the fields for Option from Some followed by `…
Browse files Browse the repository at this point in the history
…None` to `None` followed by `Some` (FuelLabs#2328)

Changed order to be None then Some
  • Loading branch information
Braqzen authored Jul 14, 2022
1 parent adead53 commit ec6e0e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sway-lib-std/src/option.sw
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ use ::revert::revert;
/// `Option` is a type that represents either the existence of a value ([`Some`]) or a value's absence
/// ([`None`]).
pub enum Option<T> {
/// Contains the value
Some: T,

/// Signifies the absence of a value
None: (),

/// Contains the value
Some: T,
}

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit ec6e0e8

Please sign in to comment.