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 some comments #6139

Merged
merged 1 commit into from
Jun 18, 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
4 changes: 2 additions & 2 deletions forc-plugins/forc-client/src/op/run/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ impl ScriptCallHandler {

/// Generate a new call handler for calling script main function from the json abi.
///
/// Proviede json abi is used for determining the argument types, this is required as the data
/// encoding is requires the type of the data.
/// Provide json abi is used for determining the argument types, this is required as the data
/// encoding is requiring the type of the data.
pub(crate) fn from_json_abi_str(json_abi_str: &str) -> anyhow::Result<Self> {
let full_abi = FullProgramABI::from_json_abi(json_abi_str)?;
// Note: using .expect() here is safe since a script without a main function is a compile
Expand Down
2 changes: 1 addition & 1 deletion sway-ir/src/optimize/sroa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pub fn sroa(
}
if let Some(dst_sym) = dst_sym {
// The dst symbol is a candidate. So it has been split into scalars.
// Store to each of these from the SSA variable we crated above.
// Store to each of these from the SSA variable we created above.
let base_offset = combine_indices(context, dst_val_ptr)
.and_then(|indices| {
dst_sym
Expand Down
Loading