diff --git a/pkg/mods/str/str.d.elv b/pkg/mods/str/str.d.elv index 57c47d1e..e260f25e 100644 --- a/pkg/mods/str/str.d.elv +++ b/pkg/mods/str/str.d.elv @@ -287,7 +287,7 @@ fn trim-left {|str cutset| } # ``` fn trim-prefix {|str prefix| } -# Outputs `$str` with all leading Unicode code points contained in `$cutset` +# Outputs `$str` with all trailing Unicode code points contained in `$cutset` # removed. To remove a suffix string use [`str:trim-suffix`](#str:trim-suffix). # # ```elvish-transcript diff --git a/website/ref/language.md b/website/ref/language.md index e617699d..1f29934c 100644 --- a/website/ref/language.md +++ b/website/ref/language.md @@ -2509,7 +2509,7 @@ There is experimental support for importing modules written in Go. See the ### Circular dependencies -Circular dependencies are allowed but has an important restriction. If a module +Circular dependencies are allowed but have an important restriction. If a module `a` contains `use b` and module `b` contains `use a`, the top-level statements in module `b` will only be able to access variables that are defined before the `use b` in module `a`; other variables will be `$nil`.