Procházet zdrojové kódy

lang: Mention `init` constraint requires annotated account to sign (#3246)

Noah Gundotra před 1 rokem
rodič
revize
c989c8e368
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      lang/derive/accounts/src/lib.rs

+ 2 - 1
lang/derive/accounts/src/lib.rs

@@ -94,7 +94,8 @@ use syn::parse_macro_input;
 ///             </td>
 ///             <td>
 ///                 Creates the account via a CPI to the system program and
-///                 initializes it (sets its account discriminator).<br>
+///                 initializes it (sets its account discriminator). The annotated account is required to sign for this instruction
+///                 unless `seeds` is provided. <br>
 ///                 Marks the account as mutable and is mutually exclusive with <code>mut</code>.<br>
 ///                 Makes the account rent exempt unless skipped with <code>rent_exempt = skip</code>.<br><br>
 ///                 Use <code>#[account(zero)]</code> for accounts larger than 10 Kibibyte.<br><br>