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

chore: fix typos #994

Merged
merged 1 commit into from
Apr 7, 2024
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
2 changes: 1 addition & 1 deletion crates/mir/src/analysis/domtree.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! This module contains dominantor tree related structs.
//! This module contains dominator tree related structs.
//!
//! The algorithm is based on Keith D. Cooper., Timothy J. Harvey., and Ken
//! Kennedy.: A Simple, Fast Dominance Algorithm: <https://www.cs.rice.edu/~keith/EMBED/dom.pdf>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/spec/items/functions/context.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Context

`Context` is used frequently in Fe smart contracts. It is used to gate access to EVM features for reading and modifyng the blockchain.
`Context` is used frequently in Fe smart contracts. It is used to gate access to EVM features for reading and modifying the blockchain.

## Rationale

Expand Down
2 changes: 1 addition & 1 deletion docs/src/user-guide/tutorials/auction.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Here, you are not only using `self` but you are prepending it with `mut`. `mut`

#### Context

Context is used to gate access to certain features including emitting logs, creating contracts, reading messages and transferring ETH. It is conventional to name the context object `ctx`. The `Context` object needs to be passed as the *first* parameter to a function unless the function also takes `self`, in which case the `Context` object should be passed as the second parameter. `Context` must be expicitly made mutable if it will invoke functions that changes the blockchain data, whereas an immutable reference to `Context` can be used where read-only access to the blockchain is needed.
Context is used to gate access to certain features including emitting logs, creating contracts, reading messages and transferring ETH. It is conventional to name the context object `ctx`. The `Context` object needs to be passed as the *first* parameter to a function unless the function also takes `self`, in which case the `Context` object should be passed as the second parameter. `Context` must be explicitly made mutable if it will invoke functions that changes the blockchain data, whereas an immutable reference to `Context` can be used where read-only access to the blockchain is needed.

Read more on [Context in Fe](https://github.com/ethereum/fe/issues/558)

Expand Down
Loading