From: Jean-Christophe Beaupré Date: Mon, 29 Aug 2016 15:33:21 +0000 (-0400) Subject: typing: Fix minor mistakes in documentation X-Git-Url: http://nitlanguage.org typing: Fix minor mistakes in documentation Signed-off-by: Jean-Christophe Beaupré --- diff --git a/src/semantize/typing.nit b/src/semantize/typing.nit index bec49a8..9e2d69a 100644 --- a/src/semantize/typing.nit +++ b/src/semantize/typing.nit @@ -102,9 +102,9 @@ private class TypeVisitor end # Check that `sub` is a subtype of `sup`. - # If `sub` is not a valid suptype, then display an error on `node` an return null. - # If `sub` is a safe subtype of `sup` then return `sub`. - # If `sub` is an unsafe subtype (ie an implicit cast is required), then return `sup`. + # If `sub` is not a valid suptype, then display an error on `node` and return `null`. + # If `sub` is a safe subtype of `sup`, then return `sub`. + # If `sub` is an unsafe subtype (i.e., an implicit cast is required), then return `sup`. # # The point of the return type is to determinate the usable type on an expression when `autocast` is true: # If the suptype is safe, then the return type is the one on the expression typed by `sub`.