summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.rs2
-rw-r--r--src/library/utility/string.rs4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/frame.rs b/src/frame.rs
index 6855e7ac..77545d06 100644
--- a/src/frame.rs
+++ b/src/frame.rs
@@ -176,7 +176,7 @@ impl Frame {
return;
}
- // Try to copy the elements without adjusting the positioned.
+ // Try to copy the elements without adjusting the position.
// Also try to reuse the elements if the Arc isn't shared.
let range = layer .. layer;
if pos.is_zero() {
diff --git a/src/library/utility/string.rs b/src/library/utility/string.rs
index 3036df06..ecfded2b 100644
--- a/src/library/utility/string.rs
+++ b/src/library/utility/string.rs
@@ -1,5 +1,3 @@
-use lipsum::lipsum_from_seed;
-
use crate::eval::Regex;
use crate::library::prelude::*;
@@ -22,7 +20,7 @@ pub fn str(_: &mut Machine, args: &mut Args) -> TypResult<Value> {
/// Create blind text.
pub fn lorem(_: &mut Machine, args: &mut Args) -> TypResult<Value> {
let words: usize = args.expect("number of words")?;
- Ok(Value::Str(lipsum_from_seed(words, 97).into()))
+ Ok(Value::Str(lipsum::lipsum(words).into()))
}
/// Create a regular expression.