Skip to content

Commit 342a729

Browse files
keshavbiswahsbt
authored andcommitted
remove new line character from strict_encode64 example
1 parent 5728fc6 commit 342a729

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/base64.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ def decode64(str)
258258
# <tt>+</tt> or <tt>/</tt>;
259259
# see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above:
260260
#
261-
# Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n"
262-
# Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n"
261+
# Base64.strict_encode64("\xFB\xEF\xBE") # => "++++"
262+
# Base64.strict_encode64("\xFF\xFF\xFF") # => "////"
263263
#
264264
# The returned string may include padding;
265265
# see {Padding}[Base64.html#module-Base64-label-Padding] above.
266266
#
267-
# Base64.strict_encode64('*') # => "Kg==\n"
267+
# Base64.strict_encode64('*') # => "Kg=="
268268
#
269269
# The returned string will have no newline characters, regardless of its length;
270270
# see {Newlines}[Base64.html#module-Base64-label-Newlines] above:

0 commit comments

Comments
 (0)