Skip to content

Commit

Permalink
Update crates/biome_js_analyze/src/lint/nursery/use_array_literals.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Apr 24, 2024
1 parent 18f5f36 commit 9525ec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare_rule! {
/// Disallow Array constructors.
///
/// Use of the Array constructor to construct a new array is generally discouraged in favor of array literal notation because of the single-argument pitfall and because the Array global may be redefined.
/// The exception is when the Array constructor is used to intentionally create sparse arrays of a specified size by giving the constructor a single numeric argument.
/// The exception is when the Array constructor intentionally creates sparse arrays of a specified size by giving the constructor a single numeric argument.
///
/// ## Examples
///
Expand Down

0 comments on commit 9525ec2

Please sign in to comment.