Skip to content

Commit

Permalink
feat: fix positions and details
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Sep 8, 2024
1 parent 69e980e commit 819b277
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
12 changes: 6 additions & 6 deletions content/3.error-handling/1.option.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ data:
type: 'custom'
topicLevel: 'start'
position:
x: 255
y: 520
x: 320
y: 580
width: 320
externalLinks:
- name: 'Libro Oficial'
english: false
link: 'https://book.rustlang-es.org/ch06-01-defining-an-enum'
- name: 'Documentacion Oficial'
- name: 'Comprehensive Rust'
english: false
link: 'https://google.github.io/comprehensive-rust/es/std-types/option.html'
- name: 'Comprehensive Rust'
- name: 'Documentacion Oficial'
english: true
link: 'https://doc.rust-lang.org/std/option'
link: 'https://doc.rust-lang.org/stable/std/option'
- name: '¿Cómo almacena Rust los enum en memoria?'
english: false
link: 'https://blog.rustlang-es.org/articles/como-almacena-rust-los-enum-en-memoria'
Expand Down Expand Up @@ -46,7 +46,7 @@ enum Option<T> {
Rust ofrece múltiples funciones para manipular opciones de forma segura:

- **is_some() e is_none():** Verifican si un `Option` contiene un valor o no.

```rust
let maybe_value: Option<i32> = Some(5);
assert!(maybe_value.is_some());
Expand Down
8 changes: 5 additions & 3 deletions content/3.error-handling/2.result.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
title: 'Results'
title: 'Result'
description: 'Result es una enumeración en Rust que se utiliza para representar valores que pueden fallar'
draft: true
data:
type: 'custom'
topicLevel: 'start'
position:
x: 255
y: 520
x: 320
y: 620
width: 320
sourcePosition:
error-handling: 'bottom'
externalLinks:
- name: 'Libro Oficial'
english: false
Expand Down
8 changes: 5 additions & 3 deletions content/3.error-handling/3.propagation-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ description: 'Mejorando el manejo de errores con el Operador de Propagación (`?
draft: true
data:
type: 'custom'
topicLevel: 'start'
topicLevel: 'medium'
position:
x: 255
y: 520
x: 650
y: 700
width: 320
sourcePosition:
error-handling: 'left'
externalLinks:
- name: 'Libro Oficial'
english: false
Expand Down
10 changes: 5 additions & 5 deletions content/3.error-handling/index.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: 'Manejo de Errores'
description: ''
draft: true
data:
type: 'custom'
topicLevel: 'medium'
position:
x: 300
y: 600
x: 390
y: 700
sourcePosition:
basic: 'left'
targetPosition:
targetPosition:
result: 'top'
cargo: 'bottom'
---
propagation-operator: 'right'
6 changes: 3 additions & 3 deletions content/4.cargo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ data:
topicLevel: 'start'
position:
x: 200
y: 700
y: 750
sourcePosition:
error-handling: 'top'
targetPosition:
error-handling: 'right'
targetPosition:
traits: 'bottom'
---
# Titulo

0 comments on commit 819b277

Please sign in to comment.