Skip to content

Commit

Permalink
Merge pull request #3726 from obi1kenobi/patch-1
Browse files Browse the repository at this point in the history
Fix typos in code example of RFC 3681
  • Loading branch information
fmease authored Nov 3, 2024
2 parents abf3bf8 + 2588c54 commit 76505fe
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 76505fe

Please sign in to comment.