From a9ba34c59ada67af4dc3b3e15dfc3c6eadb811a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?On=C3=A8?= <43485962+c-git@users.noreply.github.com> Date: Thu, 23 May 2024 03:05:22 -0400 Subject: [PATCH] Change part of speech for syntax (#40) --- book/src/04_traits/03_operator_overloading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/04_traits/03_operator_overloading.md b/book/src/04_traits/03_operator_overloading.md index b8835f6..36ef868 100644 --- a/book/src/04_traits/03_operator_overloading.md +++ b/book/src/04_traits/03_operator_overloading.md @@ -28,7 +28,7 @@ pub trait PartialEq { ``` When you write `x == y` the compiler will look for an implementation of the `PartialEq` trait for the types of `x` and `y` -and replace `x == y` with `x.eq(y)`. It's syntax sugar! +and replace `x == y` with `x.eq(y)`. It's syntactic sugar! This is the correspondence for the main operators: