diff options
author | Max Grender-Jones <maxgrenderjones@users.noreply.github.com> | 2020-06-09 02:49:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 18:49:07 -0700 |
commit | cc3409e26437e7e1d89c8d4b7baacdee695a7b44 (patch) | |
tree | a06d00ea5060525a837a338e8fa04ffba4d399e7 /lib | |
parent | 30c09e460778099633db084532672970954bb328 (diff) | |
download | Nim-cc3409e26437e7e1d89c8d4b7baacdee695a7b44.tar.gz |
Make the example better describe the desired outcome (#14611)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/std/wordwrap.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/wordwrap.nim b/lib/std/wordwrap.nim index bb6f2dc6f..27df229bf 100644 --- a/lib/std/wordwrap.nim +++ b/lib/std/wordwrap.nim @@ -110,9 +110,9 @@ tnaetdriaoenvlcyfglwckßqfgvwkßqgfvlwkßqfgvlwckßqvlwkgfUIαοιαοιαχολ # bug #14579 const input60 = """ -This is a long string. It is manually wrapped to 60 -characters. I would not expect it to be changed by -wordwrap if wordwrap is set to wrap at 80 characters""" - const input60Res = """This is a long string. It is manually wrapped to 60 characters. I would not -expect it to be changed by wordwrap if wordwrap is set to wrap at 80 characters""" +This string is wrapped to 60 characters. If we call +wrapwords on it it will be re-wrapped to 80 characters. +""" + const input60Res = """This string is wrapped to 60 characters. If we call wrapwords on it it will be +re-wrapped to 80 characters.""" doAssert wrapWords(input60) == input60Res |