ソースを参照

Fix: typos (#1157)

Fix: typo

Signed-off-by: Omahs Alief <omahsalief@outlook.com>
omahs 2 年 前
コミット
094dbe86f9
4 ファイル変更11 行追加11 行削除
  1. 2 2
      docs/extension.rst
  2. 1 1
      docs/index.rst
  3. 7 7
      docs/targets/solana.rst
  4. 1 1
      docs/targets/substrate.rst

+ 2 - 2
docs/extension.rst

@@ -25,7 +25,7 @@ Solidity Language flavour
 
 The Solidity language flavour depends on what target you are compiling for, see :ref:`language-status` for a brief overview.
 
-You can choose the between the following targets:
+You can choose between the following targets:
 
 solana
    Solidity for Solana
@@ -78,7 +78,7 @@ Once you have node and npm installed, you can build the extension like so:
 You should now have an extension file called solang-0.3.0.vsix which can be
 installed using ``code --install-extension solang-0.3.0.vsix``.
 
-Alternatively, the extension be run from vscode itself.
+Alternatively, the extension is run from vscode itself.
 
 1. Inside a vscode instance, Ctrl+Shift+B to build the project
 2. On the task bar at the bottom of the IDE select Launch Client

+ 1 - 1
docs/index.rst

@@ -18,7 +18,7 @@ Welcome to the Solang Solidity Compiler. Using Solang, you can compile smart con
 or compute units.
 
 Solang aims for source file compatibility with the Ethereum EVM Solidity compiler,
-version 0.8. Where differences exists, this is noted in the language documentation.
+version 0.8. Where differences exist, this is noted in the language documentation.
 The source code repository can be found on `github <https://github.com/hyperledger/solang>`_
 and we have a `channel #solang on Hyperledger Discord <https://discord.gg/jhn4rkqNsT>`_.
 

+ 7 - 7
docs/targets/solana.rst

@@ -191,10 +191,10 @@ or a hex string with the format ``hex"4142"``, or a constructor argument of type
 
 .. _value_transfer:
 
-Transfering native value with a function call
-_____________________________________________
+Transferring native value with a function call
+______________________________________________
 
-The Solidity langauge on Ethereum allows value transfers with an external call
+The Solidity language on Ethereum allows value transfers with an external call
 or constructor, using the ``auction.bid{value: 501}()`` syntax.
 Solana Cross Program Invocation (CPI) does not support this. This means that:
 
@@ -214,7 +214,7 @@ ________________
 
 In Solidity the ``receive()`` function, when defined, is called whenever the native
 balance for an account gets credited, for example through a contract calling
-``account.transfer(value);``. On Solana, there is no method that implement
+``account.transfer(value);``. On Solana, there is no method that implements
 this. The balance of an account can be credited without any code being executed.
 
 ``receive()`` functions are not permitted on the Solana target.
@@ -322,7 +322,7 @@ Builtin create_program_address
 
 This function returns the program derived address for a program address and
 the provided seeds. See the Solana documentation on
-`program derived adddresses <https://edge.docs.solana.com/developing/programming-model/calling-between-programs#program-derived-addresses>`_.
+`program derived addresses <https://edge.docs.solana.com/developing/programming-model/calling-between-programs#program-derived-addresses>`_.
 
 .. include:: ../examples/solana/builtin_create_program_address.sol
   :code: solidity
@@ -332,7 +332,7 @@ Builtin try_find_program_address
 
 This function returns the program derived address for a program address and
 the provided seeds, along with a seed bump. See the Solana documentation on
-`program derived adddresses <https://edge.docs.solana.com/developing/programming-model/calling-between-programs#program-derived-addresses>`_.
+`program derived addresses <https://edge.docs.solana.com/developing/programming-model/calling-between-programs#program-derived-addresses>`_.
 
 .. include:: ../examples/solana/builtin_try_find_program_address.sol
   :code: solidity
@@ -364,7 +364,7 @@ There is an example in our integration tests of how this should be used. See
 System Instructions
 +++++++++++++++++++
 
-Solana's system instructions enables developers to interact with Solana's System Program. There are functions to
+Solana's system instructions enable developers to interact with Solana's System Program. There are functions to
 create new accounts, allocate account data, assign accounts to owning programs, transfer lamports from System Program
 owned accounts and pay transaction fees. More information about the functions offered can be found both on
 `Solana documentation <https://docs.rs/solana-program/1.11.10/solana_program/system_instruction/enum.SystemInstruction.html>`_

+ 1 - 1
docs/targets/substrate.rst

@@ -14,7 +14,7 @@ The Parity Substrate has the following differences to Ethereum Solidity:
 - Only functions called via rpc may return values; when calling a function in a transaction, the return values cannot be accessed
 - An `assert()`, `require()`, or `revert()` executes the wasm unreachable instruction. The reason code is lost
 
-There is an solidity example which can be found in the
+There is a solidity example which can be found in the
 `examples <https://github.com/hyperledger/solang/tree/main/examples>`_
 directory. Write this to flipper.sol and run: