From fcc73afa8488eee8b657ba29aa42aaf492b43ff4 Mon Sep 17 00:00:00 2001 From: moloughlin Date: Fri, 8 May 2015 22:01:01 +0930 Subject: [PATCH] Fix what I assume to be a typo. --- Nim-for-Python-Programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nim-for-Python-Programmers.md b/Nim-for-Python-Programmers.md index eb722ad..d32256b 100644 --- a/Nim-for-Python-Programmers.md +++ b/Nim-for-Python-Programmers.md @@ -118,7 +118,7 @@ var heterogeneousArray: seq[ParentObjectType] = @[] # TODO: Add an object inheriting from ParentObjectType to the seq ``` -That will return a compilation error, because the objects have different sizes. Like in C, you can't make an array of structs with disparate types and sizes. What one can do is an array of references to the objects, all references having the same size put pointing to heterogeneous objects. This is what Python does by default. +That will return a compilation error, because the objects have different sizes. Like in C, you can't make an array of structs with disparate types and sizes. What one can do is an array of references to the objects, all references having the same size but pointing to heterogeneous objects. This is what Python does by default. ``` Nim # TODO: Show the proper way to do things, with emphasis on what changed