Char vs. Nat32 - I'm not getting it #42
-
Hi, I am stuck on question 5, and am not getting Candid not having a Char character. Here is what I have done (not looking for perfect; just working!) public func capitalize_text (t : Text ) : async Text { This "compliles" fine, but I then attempt to call it with: I know this is to do with Candid Char vs. Nat32 but just don't understand how to progress. Tips appreciated. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like youre calling another function? Here you have capitilize_text The function you call is dfx canister call day_2 capitalize_character '("this is my text")' capitilize_text vs capitilize_character function. |
Beta Was this translation helpful? Give feedback.
It looks like youre calling another function? Here you have capitilize_text
The function you call is dfx canister call day_2 capitalize_character '("this is my text")'
capitilize_text vs capitilize_character function.