projects: update some short descriptions
[nit.git] / examples / fibonacci.nit
index 0df0209..d4330ba 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# A simple exemple of refinement where a method is added to the integer class.
-package fibonacci
+# Simple example of refinement where a method is added to the integer class.
+module fibonacci
 
 redef class Int
        # Calculate the self-th element of the fibonacci sequence.
-       meth fibonacci: Int
+       fun fibonacci: Int
        do
                if self < 2 then
                        return 1
@@ -30,7 +30,7 @@ redef class Int
 end
 
 # Print usage and exit.
-meth usage
+fun usage
 do
        print "Usage: fibonnaci <integer>" 
        exit 0