diff --git a/sway-lib-std/README.md b/sway-lib-std/README.md index 9669bfde71d..25a219ae9bd 100644 --- a/sway-lib-std/README.md +++ b/sway-lib-std/README.md @@ -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: diff --git a/sway-lib-std/src/reentrancy.sw b/sway-lib-std/src/reentrancy.sw index a1442eeeb48..ca2e51a24e1 100644 --- a/sway-lib-std/src/reentrancy.sw +++ b/sway-lib-std/src/reentrancy.sw @@ -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;