Skip to content

Commit

Permalink
fix: multiple typos of different importance (linera-io#3286)
Browse files Browse the repository at this point in the history
Fixed some typos, hope it'll help in some way

---------

Signed-off-by: crStiv <[email protected]>
  • Loading branch information
crStiv authored Feb 10, 2025
1 parent e80f810 commit a2701bd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ being squashed should compile correctly and contain the PR number.

Only commits in a PR accepted by at least one team member should be pushed to the main branch.

Please also make yourself familiar with the rest of the guidelines below.
Please also be sure to familiarize yourself with the rest of the guidelines below.


## Naming conventions
Expand Down Expand Up @@ -98,7 +98,7 @@ cargo +nightly fmt
features = ["test"] }` in the section `[dev-dependencies]` instead of repeating the
dependencies already declared by the feature `test`.

* A few crates define the features `wasmtime` and `wasmer`. For conveniency, these crates also
* A few crates define the features `wasmtime` and `wasmer`. For convenience, these crates also
define a `default` feature. As a consequence, these crates must always be included with
the flag `no-default-features = true`. (This also applies to the self-dependencies of the
previous rule.)
Expand Down Expand Up @@ -176,7 +176,7 @@ command added just before the line declaring the test
```
#[ntest::timeout(600000)]
```
If the test lasts longer than the fixed time then it fails. The unit of time is millisecond, so the `600000` corresponds
If the test lasts longer than the fixed time then it fails. The unit of time is a millisecond, so the `600000` corresponds
to `600` seconds and so to `10` minutes.

### Tracking simultaneous threads in `tokio`
Expand Down Expand Up @@ -229,7 +229,7 @@ scrape_configs:
- targets: ['localhost:9090']
```

4. The Web app on `http://localhost:9090` provides a way to access to the metrics. Another way is to use the API as indicated below and the process the results.
4. The Web app on `http://localhost:9090` provides a way to access to the metrics. Another way is to use the API as indicated below and process the results.
5. The list of available metrics is available by looking at `http://localhost:9090/api/v1/label/__name__/values`
6. The instantaneous value of a metric over all sources is accessed via `http://localhost:9090/api/v1/query?query=up` with `up` the metric sought.
7. The values of metrics over an interval over all sources is accessed via `http://localhost:9090/api/v1/query_range?query=up&start=2023-01-04T12:00:00Z&end=2023-01-04T16:00:00Z&step=1s`.
Expand Down
6 changes: 3 additions & 3 deletions examples/amm/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automated Market Maker (AMM) Example Application

This example implements an Automated Market Maker (AMM) which demonstrates DeFi capabilities of the
Linera protocol. Prerequisite for the AMM application is the `fungible` application, as we will
This example implements an Automated Market Maker (AMM) which demonstrates the DeFi capabilities of the
Linera protocol. The prerequisite for the AMM application is the `fungible` application, as we will
be adding/removing liquidity and also performing a swap.

## How it works
Expand All @@ -18,7 +18,7 @@ It supports the following operations. All operations need to be executed remotel
adding liquidity, which currently can only be a chain owner.

- Remove Liquidity: This withdraws tokens from the AMM. Given the index of the token you'd
like to remove (can be 0 or 1), and an amount of that token that you'd like to remove, it calculates
like to remove (can be 0 or 1), and the amount of that token that you'd like to remove, it calculates
how much of the other token will also be removed based on the current AMM ratio. Then it removes
the amounts from both tokens as a removal of liquidity. The owner, in this context, is the user
removing liquidity, which currently can only be a chain owner.
Expand Down
2 changes: 1 addition & 1 deletion examples/gen-nft/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Installing and starting the web server:
cd examples/gen-nft/web-frontend
npm install --no-save

# Start the server but not open the web page right away.
# Start the server but do not open the web page right away.
BROWSER=none npm start &
```

Expand Down
2 changes: 1 addition & 1 deletion examples/rfq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ possible that multiple requests could have been received: the user specifies whi
responding to using a request ID, consisting of the other party's chain ID and a sequence number.

User A, after receiving the quote, has the option to either cancel the whole request using the
`CancelRequest` operation, or accept it using the `AcceptQuote` operation. Cancelling the request
`CancelRequest` operation, or accept it using the `AcceptQuote` operation. Canceling the request
removes it from the application state and notifies the other party. Accepting the request launches
the exchange process.

Expand Down
4 changes: 2 additions & 2 deletions examples/social/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sleep 2
Type each of these in the GraphiQL interface and substitute the env variables with their actual values that we've defined above.

Point your browser to http://localhost:8081. This is the wallet that didn't create the
application, so we have to request it from the creator chain. As the chain ID specify the
application, so we have to request it from the creator chain. As the chain ID specifies the
one of the chain where it isn't registered yet:

```gql,uri=http://localhost:8081
Expand Down Expand Up @@ -144,7 +144,7 @@ Since 8081 is a subscriber. Let's see if it received any posts: # You can see th
query { receivedPosts { keys { timestamp author index } } }
```

This should now list one entry, with timestamp, author and an index. If we view that
This should now list one entry, with a timestamp, author and an index. If we view that
entry, we can see the posted text as well as other values:

```gql
Expand Down
4 changes: 2 additions & 2 deletions linera-views/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ also need to accommodate other features:
The rules for constructing keys are the following:
* For the construction of `struct` objects of associated base key `base_key` we do the
following: If the corresponding type has entries `entry_0`, ..., `entry_k` then the
base key of the object associated with the `k`-th entry is `[base_key * * * *]` with `[* * * *]`
the serialization of the number `k` considered as a `u32`.
base key of the object associated with the `k`-th entry is `[base_key * * * *]` where
`[* * * *]` are the four bytes of `k` as a `u32`.
* For each view type, we have some associated data. Some are the hash, others the counts
(e.g. for `LogView` and `QueueView`) and some the index. The corresponding enum is
named `KeyTag` for each of those containers. For the index, the values are serialized.
Expand Down

0 comments on commit a2701bd

Please sign in to comment.