Rephrase the imperative-functional styles notion

pull/76/head
Sudo Nice 4 years ago
parent 2facee7801
commit 5fd227f2e0

@ -5534,7 +5534,7 @@ fn main() {
## Chaining methods
Rust is a systems programming language like C and C++, but it also has a functional style. Both styles are okay, but functional style is usually shorter. Here is an example of the non-functional style (called "imperative style") to make a `Vec` from 1 to 10:
Rust is a systems programming language like C and C++, and its code can be written as separate commands in separate lines, but it also has a functional style. Both styles are okay, but functional style is usually shorter. Here is an example of the non-functional style (called "imperative style") to make a `Vec` from 1 to 10:
```rust
fn main() {

Loading…
Cancel
Save