mirror of https://github.com/rust-lang/rfcs.git
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:
parent
abf3bf817e
commit
2588c54f86
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue