From 819b277e5cee7e618738f2edb8a56053b9d80435 Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Sun, 8 Sep 2024 18:07:54 -0400 Subject: [PATCH] feat: fix positions and details --- content/3.error-handling/1.option.md | 12 ++++++------ content/3.error-handling/2.result.md | 8 +++++--- content/3.error-handling/3.propagation-operator.md | 8 +++++--- content/3.error-handling/index.yml | 10 +++++----- content/4.cargo/index.md | 6 +++--- 5 files changed, 24 insertions(+), 20 deletions(-) diff --git a/content/3.error-handling/1.option.md b/content/3.error-handling/1.option.md index 3be3df8..a4553e1 100644 --- a/content/3.error-handling/1.option.md +++ b/content/3.error-handling/1.option.md @@ -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' @@ -46,7 +46,7 @@ enum Option { 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 = Some(5); assert!(maybe_value.is_some()); diff --git a/content/3.error-handling/2.result.md b/content/3.error-handling/2.result.md index 5d1a0d2..6c368fb 100644 --- a/content/3.error-handling/2.result.md +++ b/content/3.error-handling/2.result.md @@ -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 diff --git a/content/3.error-handling/3.propagation-operator.md b/content/3.error-handling/3.propagation-operator.md index 44d77b8..b122728 100644 --- a/content/3.error-handling/3.propagation-operator.md +++ b/content/3.error-handling/3.propagation-operator.md @@ -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 diff --git a/content/3.error-handling/index.yml b/content/3.error-handling/index.yml index 4c9a8dc..72551bb 100644 --- a/content/3.error-handling/index.yml +++ b/content/3.error-handling/index.yml @@ -1,4 +1,3 @@ ---- title: 'Manejo de Errores' description: '' draft: true @@ -6,10 +5,11 @@ 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' diff --git a/content/4.cargo/index.md b/content/4.cargo/index.md index 330de6c..4aa4f4b 100644 --- a/content/4.cargo/index.md +++ b/content/4.cargo/index.md @@ -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