examples: annotate examples
[nit.git] / lib / pnacl / examples / converter / converter.nit
index 907aaa3..cda360e 100644 (file)
 # Creates a converter and initializes it
 # Finally checks for dictionaries
 
-import pnacl
+import pnacl is example
 
 class Converter
        super PnaclApp
 
        # We have to redefine the method to do what we want when receiving a dictionary from JS
-       redef fun handle_dictionary(dictionary: PepperDictionary)
-       do
+       redef fun handle_dictionary(dictionary) do
                # Getting values from the dictionary
                var from = dictionary["from"]
                var to = dictionary["to"]