Browse Source

Update comment on state.rs regarding is_native

I was confused when reading this comment and had to read the code to realize that the comment isn't a typo. 

(Btw, let me know if this kind of small changes are helpful or not 👍.)
Victor Pontis 3 years ago
parent
commit
6858f1fdcd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      program/src/state.rs

+ 3 - 3
program/src/state.rs

@@ -95,9 +95,9 @@ pub struct Account {
     pub delegate: COption<Pubkey>,
     /// The account's state
     pub state: AccountState,
-    /// If is_some, this is a native token, and the value logs the rent-exempt reserve. An Account
-    /// is required to be rent-exempt, so the value is used by the Processor to ensure that wrapped
-    /// SOL accounts do not drop below this threshold.
+    /// If is_native.is_some, this is a native token, and the value logs the rent-exempt reserve. An
+    /// Account is required to be rent-exempt, so the value is used by the Processor to ensure that
+    /// wrapped SOL accounts do not drop below this threshold.
     pub is_native: COption<u64>,
     /// The amount delegated
     pub delegated_amount: u64,