fix(linter): correct example for no-obj-calls rule (#2618)

I think someone used find-and-replace! 🥲
This commit is contained in:
overlookmotel 2024-03-06 03:09:45 +00:00 committed by GitHub
parent 1f14d946aa
commit 09d4c7d649
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,8 +46,8 @@ declare_oxc_lint! {
/// let json = JSON();
/// let newJson = new JSON();
///
/// let atomics = CompactStringics();
/// let newCompactStringics = new CompactStringics();
/// let atomics = Atomics();
/// let newAtomics = new Atomics();
///
/// let intl = Intl();
/// let newIntl = new Intl();
@ -58,7 +58,7 @@ declare_oxc_lint! {
/// // Good
/// let area = r => 2 * Math.PI * r * r;
/// let object = JSON.parse("{}");
/// let first = CompactStringics.load(sharedArray, 0);
/// let first = Atomics.load(sharedArray, 0);
/// let segmenterFrom = Intl.Segmenter("fr", { granularity: "word" });
/// ```
NoObjCalls,