Skip to content

Commit 6626739

Browse files
sonukapooratscott
authored andcommitted
docs(core): fixes minor typo in initNgDevMode function docs (angular#38042)
PR Close angular#38042
1 parent 396033d commit 6626739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/util/ng_dev_mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function ngDevModeResetPerfCounters(): NgDevModePerfCounters {
9797
* (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
9898
* is defined for the entire instruction set.
9999
*
100-
* When using checking `ngDevMode` on toplevel, always init it before referencing it
100+
* When checking `ngDevMode` on toplevel, always init it before referencing it
101101
* (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
102102
* get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
103103
*

0 commit comments

Comments
 (0)