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 #1745

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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 fmt/src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,19 +1198,19 @@ impl<'a, W: Write> Formatter<'a, W> {
let whitespace = if !prefix.is_empty() { " " } else { "" };
let next_after_start_offset = items.first().map(|item| item.loc().start());
let first_surrounding = SurroundingChunk::new("", start_offset, next_after_start_offset);
let last_surronding = SurroundingChunk::new(")", None, end_offset);
let last_surrounding = SurroundingChunk::new(")", None, end_offset);
if items.is_empty() {
if paren_required {
write!(self.buf(), "{whitespace}(")?;
self.surrounded(first_surrounding, last_surronding, |fmt, _| {
self.surrounded(first_surrounding, last_surrounding, |fmt, _| {
// write comments before the list end
write_chunk!(fmt, end_offset.unwrap_or_default(), "")?;
Ok(())
})?;
}
} else {
write!(self.buf(), "{whitespace}(")?;
self.surrounded(first_surrounding, last_surronding, |fmt, multiline| {
self.surrounded(first_surrounding, last_surrounding, |fmt, multiline| {
let args =
fmt.items_to_chunks(end_offset, items.iter_mut().map(|arg| (arg.loc(), arg)))?;
let multiline =
Expand Down
2 changes: 1 addition & 1 deletion integration/polkadot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function query(
const msg = contract.abi.findMessage(message);
const callResult = await api.call.contractsApi.call(account.address, contract.address, value ? value : 0, gasLimit ? gasLimit : null, null, msg.toU8a(args ? args : []));
// Same logic as contracts UI, so should be fine.
// Refernce implementation: https://github.com/paritytech/contracts-ui/blob/e343221a0d5c1ae67122fe99028246e5bdf38c46/src/ui/hooks/useDecodedOutput.ts
// Reference implementation: https://github.com/paritytech/contracts-ui/blob/e343221a0d5c1ae67122fe99028246e5bdf38c46/src/ui/hooks/useDecodedOutput.ts
const output = callResult.result.isOk && msg.returnType && callResult.result.asOk.flags.isEmpty
? contract.abi.registry.createTypeUnsafe(
msg.returnType.lookupName || msg.returnType.type,
Expand Down
2 changes: 1 addition & 1 deletion integration/polkadot/ink/caller/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod caller {
}

/// Do a proxy call to `callee` and return its result.
/// The message under `selector` should have exactly one `u32` arguemnt and return a `u32`.
/// The message under `selector` should have exactly one `u32` argument and return a `u32`.
#[ink(message)]
pub fn u32_proxy(
&self,
Expand Down
2 changes: 1 addition & 1 deletion testdata/solang_import_resolution_tests/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# README

This repo catalogues discrepencies between the import behaviors of solc and
This repo catalogues discrepancies between the import behaviors of solc and
solang. Tests were run on:

+ solang v0.3.0
Expand Down