serialization: update some doc
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 22 Jul 2017 12:47:49 +0000 (08:47 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 26 Jul 2017 15:03:44 +0000 (11:03 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/serialization/serialization.nit
tests/test_deserialization.nit

index b0d5d6c..d03f77d 100644 (file)
@@ -113,8 +113,7 @@ abstract class Deserializer
 
        # Deserialize the attribute with `name` from the object open for deserialization
        #
-       # The `static_type` can be used as last resort if the deserialized object
-       # desn't have any metadata declaring the dynamic type.
+       # The `static_type` restricts what kind of object can be deserialized.
        #
        # Return the deserialized value or null on error, and set
        # `deserialize_attribute_missing` to whether the attribute was missing.
index 478f9d0..527821b 100644 (file)
@@ -125,5 +125,5 @@ class TestEntities
        var with_generics: Array[Serializable] = [a, b, c, d, e, fi, ff, g: Serializable]
 end
 
-# We instanciate it here so that `nitserial` detects generic types as being alive
+# We instantiate it here so that `nitserial` detects generic types as being alive
 var entities = new TestEntities