Skip to content

Commit

Permalink
[flow][easy] NonNonimal -> NonNominal
Browse files Browse the repository at this point in the history
Summary:
Just fixin' a typo :)

Changelog: [internal]

Reviewed By: SamChou19815

Differential Revision: D51762081

fbshipit-source-id: e7feddb8d15d2bd7636a33ab8325d67de2aa295f
  • Loading branch information
jbrown215 authored and facebook-github-bot committed Dec 14, 2023
1 parent 88e865b commit 4099126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/typing/errors/error_message.ml
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ and invalid_mapped_type_error_kind =
and invalid_render_type_kind =
| InvalidRendersNullVoidFalse
| InvalidRendersIterable
| InvalidRendersNonNonimalElement
| InvalidRendersNonNominalElement
| InvalidRendersGenericT
| UncategorizedInvalidRenders

Expand All @@ -853,7 +853,7 @@ let string_of_assigned_const_like_binding_type = function
let string_of_invalid_render_type_kind = function
| InvalidRendersNullVoidFalse -> "null | void | false"
| InvalidRendersIterable -> "iterable"
| InvalidRendersNonNonimalElement -> "non-nominal"
| InvalidRendersNonNominalElement -> "non-nominal"
| InvalidRendersGenericT -> "generic"
| UncategorizedInvalidRenders -> "uncategorized"

Expand Down Expand Up @@ -5183,7 +5183,7 @@ let friendly_message_of_msg loc_of_aloc msg =
{ loc = _; renders_variant; invalid_render_type_kind; invalid_type_reasons } ->
let additional_explanation =
match (invalid_render_type_kind, renders_variant) with
| (InvalidRendersNonNonimalElement, _) ->
| (InvalidRendersNonNominalElement, _) ->
[text " Only elements of a component-syntax components can appear in renders."]
| (InvalidRendersNullVoidFalse, Flow_ast.Type.Renders.Maybe) ->
[
Expand Down
2 changes: 1 addition & 1 deletion src/typing/merge_js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ let validate_renders_type_arguments cx =
{
loc;
renders_variant;
invalid_render_type_kind = InvalidRendersNonNonimalElement;
invalid_render_type_kind = InvalidRendersNonNominalElement;
invalid_type_reasons = Nel.one invalid_type_reason;
}
)
Expand Down

0 comments on commit 4099126

Please sign in to comment.