Skip to content

Commit

Permalink
Fix typos in code example of RFC 3681
Browse files Browse the repository at this point in the history
Updating `s/missilies/missiles` in the code example that shows how defaults are `const` contexts.
  • Loading branch information
obi1kenobi authored Nov 3, 2024
1 parent abf3bf8 commit 2588c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/3681-default-field-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand All @@ -501,7 +501,7 @@ fn launch_missilies() -> Result<(), LaunchFailure> {

struct BadFoo {
bad_field: u8 = {
launch_missilies().unwrap();
launch_missiles().unwrap();
42
},
}
Expand Down

0 comments on commit 2588c54

Please sign in to comment.