summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/array.rs2
-rw-r--r--src/eval/str.rs4
-rw-r--r--src/eval/value.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/eval/array.rs b/src/eval/array.rs
index bebbe809..3006c91f 100644
--- a/src/eval/array.rs
+++ b/src/eval/array.rs
@@ -114,7 +114,7 @@ impl Array {
Ok(self.0.remove(i))
}
- /// Extract a contigous subregion of the array.
+ /// Extract a contiguous subregion of the array.
pub fn slice(&self, start: i64, end: Option<i64>) -> StrResult<Self> {
let len = self.len();
let start = self
diff --git a/src/eval/str.rs b/src/eval/str.rs
index 0d5d71b9..b1551564 100644
--- a/src/eval/str.rs
+++ b/src/eval/str.rs
@@ -72,7 +72,7 @@ impl Str {
Ok(grapheme.into())
}
- /// Extract a contigous substring.
+ /// Extract a contiguous substring.
pub fn slice(&self, start: i64, end: Option<i64>) -> StrResult<Self> {
let start = self.locate(start)?;
let end = self.locate(end.unwrap_or(self.len()))?.max(start);
@@ -251,7 +251,7 @@ impl Str {
trimmed.into()
}
- /// Replace at most `count` occurances of the given pattern with a
+ /// Replace at most `count` occurrences of the given pattern with a
/// replacement string (beginning from the start).
pub fn replace(&self, pattern: StrPattern, with: Self, count: Option<usize>) -> Self {
match pattern {
diff --git a/src/eval/value.rs b/src/eval/value.rs
index ce9c4e0e..bf1dd18a 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -250,7 +250,7 @@ impl Hash for Value {
pub struct Dynamic(Arc<dyn Bounds>);
impl Dynamic {
- /// Create a new instance from any value that satisifies the required bounds.
+ /// Create a new instance from any value that satisfies the required bounds.
pub fn new<T>(any: T) -> Self
where
T: Type + Debug + PartialEq + Hash + Sync + Send + 'static,