From b17844f13b4f4a4b279265a7af67990a73b5d7c8 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 26 Sep 2020 23:29:14 +0200 Subject: [PATCH] fix some typos --- src/function.rs | 2 +- src/spaces.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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