Skip to content

Commit

Permalink
docs: Fix grammar issues in multiple files (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcofann authored Jan 16, 2025
1 parent d2f8eff commit adf2974
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions cardinal/persona_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestPersonaTagIsValid(t *testing.T) {
}

func TestCreatePersonaTransactionAutomaticallyCreated(t *testing.T) {
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine.
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine.
tf := NewTestFixture(t, nil)
world := tf.World
tf.StartWorld()
Expand Down Expand Up @@ -125,7 +125,7 @@ func TestDuplicatePersonaTagsInTickAreOnlyRegisteredOnce(t *testing.T) {
}

func TestCreatePersonaFailsIfTagIsInvalid(t *testing.T) {
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine.
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine.
tf := NewTestFixture(t, nil)
world := tf.World
tf.StartWorld()
Expand All @@ -140,7 +140,7 @@ func TestCreatePersonaFailsIfTagIsInvalid(t *testing.T) {
}

func TestSamePersonaWithDifferentCaseCannotBeClaimed(t *testing.T) {
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine.
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine.
tf := NewTestFixture(t, nil)
world := tf.World
tf.StartWorld()
Expand All @@ -154,7 +154,7 @@ func TestSamePersonaWithDifferentCaseCannotBeClaimed(t *testing.T) {
}

func TestCanAuthorizeAddress(t *testing.T) {
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine.
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine.
tf := NewTestFixture(t, nil)
world := tf.World
tf.StartWorld()
Expand Down Expand Up @@ -192,7 +192,7 @@ func TestCanAuthorizeAddress(t *testing.T) {
}

func TestAuthorizeAddressFailsOnInvalidAddress(t *testing.T) {
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with a engine.
// Verify that the cardinal.CreatePersona is automatically cardinal.Created and registered with an engine.
tf := NewTestFixture(t, nil)
world := tf.World
tf.StartWorld()
Expand Down
2 changes: 1 addition & 1 deletion cardinal/receipt/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r Receipt) MarshalJSON() ([]byte, error) {
})
}

// NewHistory creates a object that can track transaction receipts over a number of ticks.
// NewHistory creates an object that can track transaction receipts over a number of ticks.
func NewHistory(currentTick uint64, ticksToStore int) *History {
// Add an extra tick for the "current" tick.
ticksToStore++
Expand Down
4 changes: 2 additions & 2 deletions cardinal/world_fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (t *TestFixture) httpURL(path string) string {
return fmt.Sprintf("http://%s/%s", t.BaseURL, path)
}

// Post executes a http POST request to this TextFixture's cardinal server.
// Post executes an http POST request to this TextFixture's cardinal server.
func (t *TestFixture) Post(path string, payload any) *http.Response {
bz, err := json.Marshal(payload)
assert.NilError(t, err)
Expand All @@ -163,7 +163,7 @@ func (t *TestFixture) Post(path string, payload any) *http.Response {
return resp
}

// Get executes a http GET request to this TestFixture's cardinal server.
// Get executes an http GET request to this TestFixture's cardinal server.
func (t *TestFixture) Get(path string) *http.Response {
req, err := http.NewRequestWithContext(context.Background(), http.MethodGet, t.httpURL(strings.Trim(path, "/")),
nil)
Expand Down
4 changes: 2 additions & 2 deletions docs/cardinal/game/cql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Two functions are provided in the language that accept a variadic amount of comp

**Examples:**

- `CONTAINS(armComponent)` is a query for all entities that have a arm component. The entity can have more components than just the arm.
- `CONTAINS(armComponent)` is a query for all entities that have an arm component. The entity can have more components than just the arm.
- `CONTAINS(armComponent, legComponent)` is query for all entities that have both an arm component and a leg component. The entity can have more components than the arm and the leg.


Expand Down Expand Up @@ -92,4 +92,4 @@ You can use parenthesis to specify and change precedence in CQL.
- The above is a query for either an entity with only a leg component or an entity that does not have a health component and also does not have an attack component.

- Example: `(EXACT(legComponent) | !CONTAINS(healthComponent)) & !CONTAINS(attackComponent)`
- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain a attack component.
- The above is the same query but with precedence changed. Now it is querying an entity with either exactly one leg component or does not have a health component. Additionally that entity must not ever contain an attack component.
2 changes: 1 addition & 1 deletion evm/app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (app *App) ExportAppStateAndValidators(
func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
applyAllowedAddrs := false

// check if there is a allowed address list
// check if there is an allowed address list
if len(jailAllowedAddrs) > 0 {
applyAllowedAddrs = true
}
Expand Down
2 changes: 1 addition & 1 deletion relay/nakama/utils/nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func GetUserID(ctx context.Context) (string, error) {
return userID, nil
}

// MarshalResult marshals the given result and converts any marshalling error into a "Internal" RPC error.
// MarshalResult marshals the given result and converts any marshalling error into an "Internal" RPC error.
func MarshalResult(logger runtime.Logger, result any) (string, error) {
bz, err := json.Marshal(result)
if err != nil {
Expand Down

0 comments on commit adf2974

Please sign in to comment.