Skip to content

Commit

Permalink
Issue#3044 Update minor mistakes in README.md and src/reentrancy.sw (F…
Browse files Browse the repository at this point in the history
  • Loading branch information
K1-R1 authored Oct 15, 2022
1 parent 6123675 commit a1d40f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sway-lib-std/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Sway Standard Library is the foundation of portable Sway software, a set of

## Usage

The standard library is made implicitly available to all Forc projects created using `forc new`. In other words, it is not required to manually specify `std` as an explicit dependency. Forc will automagically use the version of `std` that matches its version.
The standard library is made implicitly available to all Forc projects created using `forc new`. In other words, it is not required to manually specify `std` as an explicit dependency. Forc will automatically use the version of `std` that matches its version.

Importing items from the standard library can be done using the `use` keyword, just as importing items from any other Sway library. For example:

Expand Down
2 changes: 1 addition & 1 deletion sway-lib-std/src/reentrancy.sw
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A reentrancy check for use in Sway contracts.
//! Note that this only works in internal contexts.
//! to prevent reentrancy: `assert(!is_reentrant);
//! to prevent reentrancy: `assert(!is_reentrant());`
library reentrancy;

use ::assert::assert;
Expand Down

0 comments on commit a1d40f5

Please sign in to comment.