Merge pull request #1777 from AleoHQ/fix-spelling

Fix typos uncovered by spell checker in VS Code.
This commit is contained in:
Collin Chin 2022-05-02 09:29:59 -07:00 committed by GitHub
commit 4617c3ba35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -32,13 +32,13 @@ use std::{
/// An identifier in the constrained program. /// An identifier in the constrained program.
/// ///
/// Attention - When adding or removing fields from this struct, /// 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. /// to reflect the new struct instantiation.
#[derive(Clone)] #[derive(Clone)]
pub struct Identifier { pub struct Identifier {
/// The symbol that the user wrote, e.g., `foo`. /// The symbol that the user wrote, e.g., `foo`.
pub name: Symbol, 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, pub span: Span,
} }

View File

@ -73,7 +73,7 @@ macro_rules! strings {
([$($acc:expr),*] [$_sym:ident: $string:literal $(,)?]) => { ([$($acc:expr),*] [$_sym:ident: $string:literal $(,)?]) => {
strings!([$($acc,)* $string] []) 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`. // So in e.g., `symbols! { x, y }`, this handles `y` with `x` already in `$acc`.
([$($acc:expr),*] [$sym:ident $(,)?]) => { ([$($acc:expr),*] [$sym:ident $(,)?]) => {
strings!([$($acc,)* stringify!($sym)] []) strings!([$($acc,)* stringify!($sym)] [])