Skip to content

Commit

Permalink
ooops
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Dec 3, 2024
1 parent a3c3ea6 commit 1666d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down

0 comments on commit 1666d59

Please sign in to comment.