Skip to content

Commit c260287

Browse files
DOBENlimemloh
andauthored
Apply suggestions from code review
Co-authored-by: Emil Holm Gjørup <[email protected]>
1 parent 0e9e004 commit c260287

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/mainnet/smart-contracts/guides/no-std.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ You can update your `Cargo.toml` file by using:
4646
In ``concordium-std`` version in the range of ``>=6.0.0`` and ``<10.0.0``, ``wee_alloc`` is a feature and needs to be explicitly enabled.
4747
In ``concordium-std`` version ``>=10.0.0``, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ is a feature and needs to be explicitly enabled.
4848
When ``std`` feature is enabled, the allocator provided by the Rust standard library is used
49-
by default but when the ``wee_alloc/bump_alloc`` feature is enabled in addition, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ ( or `wee_alloc <https://docs.rs/wee_alloc/>`_) is used instead.
49+
by default but when the ``wee_alloc``/``bump_alloc`` feature is enabled in addition, `bump_alloc <https://docs.rs/concordium-std/10.0.0/concordium_std/#use-a-custom-allocator>`_ ( or `wee_alloc <https://docs.rs/wee_alloc/>`_) is used instead.
5050

5151
You can enable the ``std`` feature and the ``wee_alloc`` feature in ``concordium-std`` version in the range of ``>=6.0.0`` and ``<10.0.0`` by using:
5252

@@ -62,7 +62,7 @@ You can update your `Cargo.toml` file by using:
6262
[dependencies]
6363
concordium-std = {version = "10.0", features = ["bump_alloc"]}
6464
65-
Alternatively, if you want to test with and without ``wee_alloc/bump_alloc`` enabled add a ``wee_alloc/bump_alloc`` feature to the smart contract crate as follows:
65+
Alternatively, if you want to test with and without ``wee_alloc``/``bump_alloc`` enabled add a ``wee_alloc``/``bump_alloc`` feature to the smart contract crate as follows:
6666

6767
.. code-block:: rust
6868
@@ -78,8 +78,8 @@ You can update your `Cargo.toml` file by using:
7878
7979
$cargo concordium build
8080
81-
When ``no_std`` is used either ``wee_alloc/bump_alloc`` must be enabled, or another global allocator
82-
must be set in the smart contract. You can add the ``wee_alloc/bump_alloc`` feature by using e.g.:
81+
When ``no_std`` is used either ``wee_alloc``/``bump_alloc`` must be enabled, or another global allocator
82+
must be set in the smart contract. You can add the ``wee_alloc``/``bump_alloc`` feature by using e.g.:
8383

8484
.. code-block:: rust
8585

0 commit comments

Comments
 (0)