Fix typos in code example of RFC 3681

Updating `s/missilies/missiles` in the code example that shows how defaults are `const` contexts.
This commit is contained in:
Predrag Gruevski 2024-11-03 17:01:57 -05:00 committed by GitHub
parent abf3bf817e
commit 2588c54f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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
},
}