diff --git a/compiler/ast/src/common/identifier.rs b/compiler/ast/src/common/identifier.rs index b2f2ba5c61..e520d98a47 100644 --- a/compiler/ast/src/common/identifier.rs +++ b/compiler/ast/src/common/identifier.rs @@ -32,13 +32,13 @@ use std::{ /// An identifier in the constrained program. /// /// Attention - When adding or removing fields from this struct, -/// please remember to update it's Serialize and Deserialize implementation +/// please remember to update its Serialize and Deserialize implementation /// to reflect the new struct instantiation. #[derive(Clone)] pub struct Identifier { /// The symbol that the user wrote, e.g., `foo`. pub name: Symbol, - /// A span locating where the identifier occured in the source. + /// A span locating where the identifier occurred in the source. pub span: Span, } diff --git a/leo/span/src/symbol.rs b/leo/span/src/symbol.rs index a051db60c5..c9a30ed80b 100644 --- a/leo/span/src/symbol.rs +++ b/leo/span/src/symbol.rs @@ -73,7 +73,7 @@ macro_rules! strings { ([$($acc:expr),*] [$_sym:ident: $string:literal $(,)?]) => { strings!([$($acc,)* $string] []) }; - // Base case 4): A single identitifier left. + // Base case 4): A single identifier left. // So in e.g., `symbols! { x, y }`, this handles `y` with `x` already in `$acc`. ([$($acc:expr),*] [$sym:ident $(,)?]) => { strings!([$($acc,)* stringify!($sym)] [])