Fixed typo.
authorTorsten Scheck <torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:46:07 +0000 (18:46 +0200)
committerTorsten Scheck <torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:46:07 +0000 (18:46 +0200)
src/part01.rs

index 56272b2f68c294c879171bee569068cd482d2522..95e45937e977073ae391ba626727186fa22abfb8 100644 (file)
@@ -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