From: Torsten Scheck Date: Fri, 30 Jun 2017 16:46:07 +0000 (+0200) Subject: Fixed typo. X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/530115b3acbf1d7503b4065f12fd0879708a5c90?hp=--cc Fixed typo. --- 530115b3acbf1d7503b4065f12fd0879708a5c90 diff --git a/src/part01.rs b/src/part01.rs index 56272b2..95e4593 100644 --- a/src/part01.rs +++ b/src/part01.rs @@ -13,7 +13,7 @@ //@ For example, consider `sqr`: fn sqr(i: i32) -> i32 { i * i } //@ Between the curly braces, we are giving the *expression* that computes the return value. -//@ So we can just write `i * i`, the expression that returns the square if `i`! +//@ So we can just write `i * i`, the expression that returns the square of `i`! //@ This is very close to how mathematicians write down functions (but with more types). // Conditionals are also just expressions. This is comparable to the ternary `? :` operator