Skip to content

Commit 2293992

Browse files
committed
chore: fix some typos in comment
Signed-off-by: slicesequal <slicesequal@outlook.com>
1 parent 18d0ca0 commit 2293992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lang/attribute/account/src/lazy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn gen_lazy(strct: &syn::ItemStruct) -> syn::Result<TokenStream> {
2121
let load_panic_docs = quote! {
2222
/// # Panics
2323
///
24-
/// If there is an existing mutable reference crated by any of the `load_mut` methods.
24+
/// If there is an existing mutable reference created by any of the `load_mut` methods.
2525
};
2626
let load_mut_panic_docs = quote! {
2727
/// # Panics

tests/idl/tests/new-idl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,14 @@ describe("New IDL", () => {
211211
const pointX = new anchor.BN(1);
212212
const pointY = new anchor.BN(2);
213213
const named = await testAccountEnum({ named: { pointX, pointY } });
214-
if (!named.fullEnum.named) throw new Error("Named not crated");
214+
if (!named.fullEnum.named) throw new Error("Named not created");
215215
assert(named.fullEnum.named.pointX.eq(pointX));
216216
assert(named.fullEnum.named.pointY.eq(pointY));
217217

218218
// Unnamed
219219
const tupleArg = [1, 2, 3, 4] as const;
220220
const unnamed = await testAccountEnum({ unnamed: tupleArg });
221-
if (!unnamed.fullEnum.unnamed) throw new Error("Unnamed not crated");
221+
if (!unnamed.fullEnum.unnamed) throw new Error("Unnamed not created");
222222
assert(
223223
Object.entries(unnamed.fullEnum.unnamed).every(
224224
([key, value]) => value === tupleArg[key as keyof typeof tupleArg]
@@ -233,7 +233,7 @@ describe("New IDL", () => {
233233
unnamedStruct: tupleStructArg,
234234
});
235235
if (!unnamedStruct.fullEnum.unnamedStruct) {
236-
throw new Error("Unnamed struct not crated");
236+
throw new Error("Unnamed struct not created");
237237
}
238238
assert.strictEqual(
239239
unnamedStruct.fullEnum.unnamedStruct[0].u8,

0 commit comments

Comments
 (0)