diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index bb9190579af2..9b0df9238849 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -917,8 +917,8 @@ static Expr prim_toString(EvalState & state, const ATermVector & args) } -/* `substr start len str' returns the substring of `str' starting at - character position `min(start, stringLength str)' inclusive and +/* `substring start len str' returns the substring of `str' starting + at character position `min(start, stringLength str)' inclusive and ending at `min(start + len, stringLength str)'. `start' must be non-negative. */ static Expr prim_substring(EvalState & state, const ATermVector & args) |