diff --git a/src/function.rs b/src/function.rs index 519fa0294..02e3e41b5 100644 --- a/src/function.rs +++ b/src/function.rs @@ -16,7 +16,7 @@ pub struct FunctionSpan { pub start_line: usize, /// The last line of a function pub end_line: usize, - /// If `true`, an error is occured in determining the span + /// If `true`, an error is occurred in determining the span /// of a function pub error: bool, } diff --git a/src/spaces.rs b/src/spaces.rs index fb93fc672..b3c2b07b8 100644 --- a/src/spaces.rs +++ b/src/spaces.rs @@ -117,7 +117,7 @@ impl CodeMetrics { pub struct FuncSpace { /// The name of a function space /// - /// If `None`, an error is occured in parsing + /// If `None`, an error is occurred in parsing /// the name of a function space pub name: Option, /// The first line of a function space