Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: doc: update assert's validation functions
  • Loading branch information
BridgeAR committed Jun 11, 2019
commit 25dedd65b33fb52e9cebcce4ceb04b53be3fefc0
4 changes: 2 additions & 2 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -1215,8 +1215,8 @@ assert.throws(
assert(/value/.test(err));
// Returning anything from validation functions besides `true` is not
// recommended. Doing so results in the caught error being thrown again.
// That is mostly not the desired outcome. Throw an error about the specific
// validation that failed instead (as done in this example).
// That is usually not the desired outcome. Throw an error about the
// specific validation that failed instead (as done in this example).
return true;
},
'unexpected error'
Expand Down