Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos in documentation files #2987

Merged
merged 4 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/dojo/core-cairo-test/src/tests/benchmarks.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn bench_simple_struct() {

#[derive(Copy, Drop, Serde, IntrospectPacked)]
#[dojo::model]
struct PositionWithQuaterions {
struct PositionWithQuaternions {
#[key]
id: felt252,
x: felt252,
Expand All @@ -226,7 +226,7 @@ struct PositionWithQuaterions {
fn test_struct_with_many_fields_fixed() {
let gas = GasCounterTrait::start();

let mut pos = PositionWithQuaterions {
let mut pos = PositionWithQuaternions {
id: 0x123456789abcdef,
x: 0x123456789abcdef,
y: 0x123456789abcdef,
Expand Down Expand Up @@ -264,7 +264,7 @@ fn test_struct_with_many_fields_fixed() {
idx += 1;
};

let layout = match dojo::model::Model::<PositionWithQuaterions>::layout() {
let layout = match dojo::model::Model::<PositionWithQuaternions>::layout() {
Layout::Fixed(layout) => layout,
_ => panic!("expected fixed layout"),
};
Expand Down
2 changes: 1 addition & 1 deletion crates/dojo/core-cairo-test/src/tests/helpers/event.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::world::{spawn_test_world, NamespaceDef, TestResource};

/// This file contains some partial event contracts written without the dojo::event
/// attribute, to avoid having several contracts with a same name/classhash,
/// as the test runner does not differenciate them.
/// as the test runner does not differentiate them.
/// These event contracts are used to test event upgrades in tests/event.cairo.

// This event is used as a base to create the "previous" version of an event to be upgraded.
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/graphql/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use strum::IntoEnumIterator;
use strum_macros::{AsRefStr, Display, EnumIter, EnumString};

// ValueMapping is used to map the values of the fields of a model and TypeMapping their
// correpsonding types. Both are used at runtime to dynamically build/resolve graphql
// corresponding types. Both are used at runtime to dynamically build/resolve graphql
// queries/schema. `Value` from async-graphql supports nesting, but TypeRef does not. TypeData is
// used to support nesting.
pub type ValueMapping = IndexMap<Name, Value>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- NOTE: sqlite does not support deleteing columns. Workaround is to create new table, copy, and delete old.
-- NOTE: sqlite does not support deleting columns. Workaround is to create new table, copy, and delete old.

-- Create new table without executor_address and executor_class_hash columns
CREATE TABLE worlds_new (
Expand All @@ -22,4 +22,4 @@ DROP TABLE worlds;
ALTER TABLE worlds_new RENAME TO worlds;

-- Renable foreign keys
PRAGMA foreign_keys = ON;
PRAGMA foreign_keys = ON;
Loading