From 48213c742829f3aced3a2949f6b794f344f4b25d Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 1 Apr 2020 11:49:31 +0200 Subject: encodeMIME should be encodeMime by our coding guidelines --- lib/pure/base64.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/base64.nim b/lib/pure/base64.nim index b715e749e..9495c4d56 100644 --- a/lib/pure/base64.nim +++ b/lib/pure/base64.nim @@ -182,9 +182,9 @@ proc encode*(s: string, safe = false): string = assert encode("Hello World") == "SGVsbG8gV29ybGQ=" encodeImpl() -proc encodeMIME*(s: string, lineLen = 75, newLine = "\r\n"): string = +proc encodeMime*(s: string, lineLen = 75, newLine = "\r\n"): string = ## Encodes ``s`` into base64 representation as lines. - ## Used in email MIME forma, use ``lineLen`` and ``newline``. + ## Used in email MIME format, use ``lineLen`` and ``newline``. ## ## This procedure encodes a string according to MIME spec. ## @@ -192,7 +192,7 @@ proc encodeMIME*(s: string, lineLen = 75, newLine = "\r\n"): string = ## * `encode proc<#encode,string>`_ for encoding a string ## * `decode proc<#decode,string>`_ for decoding a string runnableExamples: - assert encodeMIME("Hello World", 4, "\n") == "SGVs\nbG8g\nV29y\nbGQ=" + assert encodeMime("Hello World", 4, "\n") == "SGVs\nbG8g\nV29y\nbGQ=" for i, c in encode(s): if i != 0 and (i mod lineLen == 0): result.add(newLine) -- cgit 1.4.1-2-gfad0