From 1666d592f2a8d333d11526fdee9ccf799331980d Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Tue, 3 Dec 2024 22:01:37 +0100 Subject: [PATCH] ooops --- src/Text.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text.mo b/src/Text.mo index 2fc8c46b..3c667187 100644 --- a/src/Text.mo +++ b/src/Text.mo @@ -49,14 +49,14 @@ module { /// ```motoko include=import /// let text = Text.fromArray(['A', 'v', 'o', 'c', 'a', 'd', 'o']); // "Avocado" /// ``` - public func fromArray(a : [Char]) -> Text = fromIter(a.vals()); + public func fromArray(a : [Char]) : Text = fromIter(a.vals()); /// Converts the given `[var Char]` to a `Text` value. /// /// ```motoko include=import /// let text = Text.fromVarArray(['E', 'g', 'g', 'p', 'l', 'a', 'n', 't']); // "Eggplant" /// ``` - public func fromVarArray(a : [var Char]) -> Text = fromIter(a.vals()); + public func fromVarArray(a : [var Char]) : Text = fromIter(a.vals()); /// Iterates over each `Char` value in the given `Text`. ///