Explorar o código

chore: fix typos (#1820)

### Description

This PR corrects several minor typos in comments and documentation
across the codebase. The changes are non-functional and purely textual
to improve clarity and maintain a clean, professional codebase.

### Details

- Corrected misspellings:
  - `substract` → `subtract`
  - `specifed` → `specified`
  - `explicity` → `explicitly`

These fixes help enhance readability and eliminate minor distractions
during development and code reviews.

### Additional Info

No logic or functionality has been modified. All changes are restricted
to comments or non-executable doc annotations.

Signed-off-by: John Wick <johnwickjonwik@gmail.com>
John Wick hai 3 meses
pai
achega
5b33677df0
Modificáronse 4 ficheiros con 4 adicións e 4 borrados
  1. 1 1
      integration/polkadot/balances.spec.ts
  2. 1 1
      src/bin/cli/mod.rs
  3. 1 1
      tests/imports.rs
  4. 1 1
      vscode/CHANGELOG.md

+ 1 - 1
integration/polkadot/balances.spec.ts

@@ -31,7 +31,7 @@ describe('Deploy balances contract and test', () => {
         let { data: { free: contractQueryBalBefore } } = await conn.query.system.account(String(deploy_contract.address));
 
         // The "Existential Deposit" (aka. minimum balance) is part of the free balance;
-        // to get the actual free balance from a contracts point of view we substract it.
+        // to get the actual free balance from a contracts point of view we subtract it.
         const ED = 1000000000n;
         expect(contractRpcBal?.toString()).toBe((contractQueryBalBefore.toBigInt() - ED).toString());
 

+ 1 - 1
src/bin/cli/mod.rs

@@ -522,7 +522,7 @@ pub fn imports_arg<T: PackageTrait>(package: &T) -> FileResolver {
 
         if !dups.is_empty() {
             eprintln!(
-                "error: import paths {} specifed more than once",
+                "error: import paths {} specified more than once",
                 dups.iter().map(|p| format!("'{}'", p.display())).join(", ")
             );
             exit(1);

+ 1 - 1
tests/imports.rs

@@ -245,7 +245,7 @@ fn found_two_files() {
     let error = String::from_utf8_lossy(&output.stderr);
     println!("{error}");
 
-    assert!(error.contains("error: import paths 'imports', 'meh' specifed more than once"));
+    assert!(error.contains("error: import paths 'imports', 'meh' specified more than once"));
 
     let mut cmd = Command::cargo_bin("solang").unwrap();
     let run = cmd

+ 1 - 1
vscode/CHANGELOG.md

@@ -27,7 +27,7 @@ All notable changes to the "solang" extension will be documented in this file.
 ## [0.3.0]
 
 - Ensure the extension still works without a connections to the internet
-- Allow solang executable to set explicity to a path using
+- Allow solang executable to set explicitly to a path using
   solang.forceSolangExecutable
 - Remove unsupported targets Sawtooth and
 - Updates for solang v0.1.10