lib: Pattern is an interface
authorJean Privat <jean@pryen.org>
Thu, 31 Mar 2011 14:49:57 +0000 (10:49 -0400)
committerJean Privat <jean@pryen.org>
Thu, 31 Mar 2011 14:52:08 +0000 (10:52 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/string_search.nit

index d37ac7b..162beec 100644 (file)
@@ -17,7 +17,7 @@ package string_search
 import string
 
 # Patterns are string motifs.
-class Pattern
+interface Pattern
        # Search `self' into `s' from a certain position.
        # Return the position of the first character of the matching section.
        # Return -1 if not found.