Skip to content

Commit

Permalink
Fix typo: memmory -> memory
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Oct 16, 2020
1 parent 54b0dde commit b13953b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tunables_limit_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ impl Tunables for LimitingTunables {
) -> Result<Arc<dyn MemoryTrait>, MemoryError> {
if requested.minimum > self.max_memory {
return Err(MemoryError::Generic(
"Minimum of requested memmory exceeds the allowed memory limit".to_string(),
"Minimum of requested memory exceeds the allowed memory limit".to_string(),
));
}

if let Some(max) = requested.maximum {
if max > self.max_memory {
return Err(MemoryError::Generic(
"Maximum of requested memmory exceeds the allowed memory limit".to_string(),
"Maximum of requested memory exceeds the allowed memory limit".to_string(),
));
}
}
Expand Down

0 comments on commit b13953b

Please sign in to comment.