Update ReentrancyGuard documentation (#3715)
This commit is contained in:
committed by
GitHub
parent
8769b19860
commit
06e678d6ef
@ -54,7 +54,7 @@ abstract contract ReentrancyGuard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _nonReentrantBefore() private {
|
function _nonReentrantBefore() private {
|
||||||
// On the first call to nonReentrant, _notEntered will be true
|
// On the first call to nonReentrant, _status will be _NOT_ENTERED
|
||||||
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
|
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
|
||||||
|
|
||||||
// Any calls to nonReentrant after this point will fail
|
// Any calls to nonReentrant after this point will fail
|
||||||
|
|||||||
Reference in New Issue
Block a user