From: Onè <43485962+c-git@users.noreply.github.com> Date: Thu, 23 May 2024 07:05:22 +0000 (-0400) Subject: Change part of speech for syntax (#40) X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=a9ba34c59ada67af4dc3b3e15dfc3c6eadb811a9;p=rust_exercises.git Change part of speech for syntax (#40) --- 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: