Skip to content

Commit 31c17a1

Browse files
committed
Update Rust.md
Fixed Numbered List
1 parent 6ae01e4 commit 31c17a1

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

docs/Language/Rust/Rust.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@ has_children: false
1313

1414
Rust is a systems programming language that focuses on speed, memory safety, and parallelism. It is developed by Mozilla and is used to build fast, reliable, and secure software. Rust is an object-oriented, class-based, garbage-collected language with C-style syntax. It supports interfaces, mixins, abstract classes, generics, and optional typing.
1515

16-
### 1) Object-Oriented
16+
---
17+
18+
1. **Object-Oriented**
1719

18-
- Rust is an object-oriented language, which means that everything in Rust is an object.
19-
- Objects are instances of classes, which are blueprints for creating objects.
20+
- Rust is an object-oriented language, which means that everything in Rust is an object.
21+
- Objects are instances of classes, which are blueprints for creating objects.
2022

21-
### 2) Trait-Based
23+
2. **Trait-Based**
2224

23-
- Rust is a trait-based language, which means that all objects are created from traits.
24-
- Traits are used to define the structure and behavior of objects.
25+
- Rust is a trait-based language, which means that all objects are created from traits.
26+
- Traits are used to define the structure and behavior of objects.
2527

26-
### 3) Garbage-Collected
28+
3. **Garbage-Collected**
2729

28-
- Rust is a garbage-collected language, which means that the Rust VM automatically reclaims memory occupied by objects that are no longer in use.
29-
- This allows developers to focus on writing code instead of worrying about memory management, although we now worry about 'borrowing', which is a new concept.
30+
- Rust is a garbage-collected language, which means that the Rust VM automatically reclaims memory occupied by objects that are no longer in use.
31+
- This allows developers to focus on writing code instead of worrying about memory management, although we now worry about 'borrowing', which is a new concept.
3032

3133
---
3234

3335
## Examples
3436

35-
Here are some simple example problems that explore making a coffee. Here is some example rust code:
37+
Here are some simple example problems that explore making a coffee.
3638

39+
{: .code title="Example"}
3740
```rust
3841
struct CoffeeMaker;
3942

0 commit comments

Comments
 (0)