Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Co-Authored-By: bjorn3 <[email protected]>
  • Loading branch information
RalfJung and bjorn3 committed Mar 8, 2020
1 parent 4971d03 commit 85e1466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ impl fmt::Debug for InterpError<'_> {
}

impl InterpError<'_> {
/// Some errors allocate to be created as they contain free-from strings.
/// And sometiems we want to be sure that did not happen as it is a
/// Some errors allocate to be created as they contain free-form strings.
/// And sometimes we want to be sure that did not happen as it is a
/// waste of resources.
pub fn allocates(&self) -> bool {
match self {
Expand Down

0 comments on commit 85e1466

Please sign in to comment.