Skip to content

Commit cdf32ab

Browse files
authored
fix: typos in documentation files (#1745)
Signed-off-by: Maxim Evtush <154841002+maximevtush@users.noreply.github.com>
1 parent 389bd7f commit cdf32ab

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fmt/src/formatter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,19 +1198,19 @@ impl<'a, W: Write> Formatter<'a, W> {
11981198
let whitespace = if !prefix.is_empty() { " " } else { "" };
11991199
let next_after_start_offset = items.first().map(|item| item.loc().start());
12001200
let first_surrounding = SurroundingChunk::new("", start_offset, next_after_start_offset);
1201-
let last_surronding = SurroundingChunk::new(")", None, end_offset);
1201+
let last_surrounding = SurroundingChunk::new(")", None, end_offset);
12021202
if items.is_empty() {
12031203
if paren_required {
12041204
write!(self.buf(), "{whitespace}(")?;
1205-
self.surrounded(first_surrounding, last_surronding, |fmt, _| {
1205+
self.surrounded(first_surrounding, last_surrounding, |fmt, _| {
12061206
// write comments before the list end
12071207
write_chunk!(fmt, end_offset.unwrap_or_default(), "")?;
12081208
Ok(())
12091209
})?;
12101210
}
12111211
} else {
12121212
write!(self.buf(), "{whitespace}(")?;
1213-
self.surrounded(first_surrounding, last_surronding, |fmt, multiline| {
1213+
self.surrounded(first_surrounding, last_surrounding, |fmt, multiline| {
12141214
let args =
12151215
fmt.items_to_chunks(end_offset, items.iter_mut().map(|arg| (arg.loc(), arg)))?;
12161216
let multiline =

integration/polkadot/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export async function query(
114114
const msg = contract.abi.findMessage(message);
115115
const callResult = await api.call.contractsApi.call(account.address, contract.address, value ? value : 0, gasLimit ? gasLimit : null, null, msg.toU8a(args ? args : []));
116116
// Same logic as contracts UI, so should be fine.
117-
// Refernce implementation: https://github.com/paritytech/contracts-ui/blob/e343221a0d5c1ae67122fe99028246e5bdf38c46/src/ui/hooks/useDecodedOutput.ts
117+
// Reference implementation: https://github.com/paritytech/contracts-ui/blob/e343221a0d5c1ae67122fe99028246e5bdf38c46/src/ui/hooks/useDecodedOutput.ts
118118
const output = callResult.result.isOk && msg.returnType && callResult.result.asOk.flags.isEmpty
119119
? contract.abi.registry.createTypeUnsafe(
120120
msg.returnType.lookupName || msg.returnType.type,

integration/polkadot/ink/caller/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod caller {
2020
}
2121

2222
/// Do a proxy call to `callee` and return its result.
23-
/// The message under `selector` should have exactly one `u32` arguemnt and return a `u32`.
23+
/// The message under `selector` should have exactly one `u32` argument and return a `u32`.
2424
#[ink(message)]
2525
pub fn u32_proxy(
2626
&self,

testdata/solang_import_resolution_tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# README
22

3-
This repo catalogues discrepencies between the import behaviors of solc and
3+
This repo catalogues discrepancies between the import behaviors of solc and
44
solang. Tests were run on:
55

66
+ solang v0.3.0

0 commit comments

Comments
 (0)