Skip to content
Snippets Groups Projects
Verified Commit 5d329222 authored by Michaël El Kharroubi's avatar Michaël El Kharroubi :satellite:
Browse files

Changed small stuff

parent 0aff1f0b
No related branches found
No related tags found
1 merge request!51Errors management
Pipeline #26094 failed
......@@ -130,7 +130,7 @@ optionnelle.
Voici sa déclaration d'après la documentation Rust :
```rust,ignore
```rust
pub enum Option<T> {
None,
Some(T),
......@@ -198,7 +198,7 @@ fn main() {
Si on exécute ce code, on obtien l'erreur suivante :
```bash
```console
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 0.41s
Running `target/debug/playground`
......@@ -240,7 +240,7 @@ un état indeterminé, c'est à dire un erreur irrattrapable.
Le Rust offre une solution plus élégante que d'interrompre l'exécution du programme pour gérer les erreurs. Il s'agit
comme pour `Option<T>` d'un type énuméré. Voici sa définition :
```rust,ignore
```rust
enum Result<T, E> {
Ok(T),
Err(E),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment