From 40991268a49fa7c3fb861c415dbf76d65bbb5cb5 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 14 Dec 2023 12:52:50 -0800 Subject: [PATCH] [flow][easy] NonNonimal -> NonNominal Summary: Just fixin' a typo :) Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D51762081 fbshipit-source-id: e7feddb8d15d2bd7636a33ab8325d67de2aa295f --- src/typing/errors/error_message.ml | 6 +++--- src/typing/merge_js.ml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/typing/errors/error_message.ml b/src/typing/errors/error_message.ml index ea31d8fbcdc..c059853fc19 100644 --- a/src/typing/errors/error_message.ml +++ b/src/typing/errors/error_message.ml @@ -840,7 +840,7 @@ and invalid_mapped_type_error_kind = and invalid_render_type_kind = | InvalidRendersNullVoidFalse | InvalidRendersIterable - | InvalidRendersNonNonimalElement + | InvalidRendersNonNominalElement | InvalidRendersGenericT | UncategorizedInvalidRenders @@ -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" @@ -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) -> [ diff --git a/src/typing/merge_js.ml b/src/typing/merge_js.ml index 6574ddac30b..ed87304cc20 100644 --- a/src/typing/merge_js.ml +++ b/src/typing/merge_js.ml @@ -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; } )