X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/393ceeb96e6ad24a36d10c0dd2dc67cede3da47e..530115b3acbf1d7503b4065f12fd0879708a5c90:/src/part01.rs 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