Forráskód Böngészése

fix: typos in documentation files (#1745)

Signed-off-by: Maxim Evtush <154841002+maximevtush@users.noreply.github.com>
Maxim Evtush 6 hónapja
szülő
commit
cdf32abd34

+ 3 - 3
fmt/src/formatter.rs

@@ -1198,11 +1198,11 @@ 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(())
@@ -1210,7 +1210,7 @@ impl<'a, W: Write> Formatter<'a, W> {
             }
         } 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 =

+ 1 - 1
integration/polkadot/index.ts

@@ -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,

+ 1 - 1
integration/polkadot/ink/caller/lib.rs

@@ -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,

+ 1 - 1
testdata/solang_import_resolution_tests/README.md

@@ -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