projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
393ceeb
)
Fixed typo.
author
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:46:07 +0000
(18:46 +0200)
committer
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:46:07 +0000
(18:46 +0200)
src/part01.rs
patch
|
blob
|
history
diff --git
a/src/part01.rs
b/src/part01.rs
index 56272b2f68c294c879171bee569068cd482d2522..95e45937e977073ae391ba626727186fa22abfb8 100644
(file)
--- 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.
//@ 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
i
f `i`!
+//@ So we can just write `i * i`, the expression that returns the square
o
f `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
//@ 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