declarative -> imperative

"non-functional style" can be declarative, but the given example is clearly imperative.
pull/68/head
Nikita Tolkachev 4 years ago committed by GitHub
parent 165a6d95e3
commit ae9b9cbf60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5543,7 +5543,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 "declarative style") to make a `Vec` from 1 to 10:
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
fn main() {

Loading…
Cancel
Save