From 2588c54f86805fabcf9c47f38ff05df9e04e7d76 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:01:57 -0500 Subject: [PATCH] Fix typos in code example of RFC 3681 Updating `s/missilies/missiles` in the code example that shows how defaults are `const` contexts. --- text/3681-default-field-values.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/3681-default-field-values.md b/text/3681-default-field-values.md index 1b7e998263d..fbe8de01a78 100644 --- a/text/3681-default-field-values.md +++ b/text/3681-default-field-values.md @@ -492,7 +492,7 @@ provide a default value `field: Type = value`, the given `value` must be a Therefore, you cannot write something like (10): ```rust -fn launch_missilies() -> Result<(), LaunchFailure> { +fn launch_missiles() -> Result<(), LaunchFailure> { authenticate()?; begin_launch_sequence()?; ignite()?; @@ -501,7 +501,7 @@ fn launch_missilies() -> Result<(), LaunchFailure> { struct BadFoo { bad_field: u8 = { - launch_missilies().unwrap(); + launch_missiles().unwrap(); 42 }, }