diff --git a/lib/elixir/lib/module/types/of.ex b/lib/elixir/lib/module/types/of.ex index e08da663111..ecb151cdf54 100644 --- a/lib/elixir/lib/module/types/of.ex +++ b/lib/elixir/lib/module/types/of.ex @@ -678,7 +678,7 @@ defmodule Module.Types.Of do Comparison operators (>, <, >=, <=, min, and max) perform structural \ and not semantic comparison. Comparing with a struct won't give meaningful \ - results. Struct that can be compared typically define a compare/2 function \ + results. Structs that can be compared typically define a compare/2 function \ within their modules that can be used for semantic comparison """ ]) diff --git a/lib/elixir/test/elixir/module/types/expr_test.exs b/lib/elixir/test/elixir/module/types/expr_test.exs index e2c5048c27b..2370d13e134 100644 --- a/lib/elixir/test/elixir/module/types/expr_test.exs +++ b/lib/elixir/test/elixir/module/types/expr_test.exs @@ -382,7 +382,7 @@ defmodule Module.Types.ExprTest do # from: types_test.ex:LINE-2 y = %Point{} - Comparison operators (>, <, >=, <=, min, and max) perform structural and not semantic comparison. Comparing with a struct won't give meaningful results. Struct that can be compared typically define a compare/2 function within their modules that can be used for semantic comparison + Comparison operators (>, <, >=, <=, min, and max) perform structural and not semantic comparison. Comparing with a struct won't give meaningful results. Structs that can be compared typically define a compare/2 function within their modules that can be used for semantic comparison """} end end