commit afd8a104c5819f71f064c10daaa39d8f794c796f parent d2ffd55d6d3393cadf1ea25c225cb9637335fb04 Author: Drew DeVault <sir@cmpwn.com> Date: Sat, 30 Jan 2021 15:03:30 -0500 types: fix slice layout Diffstat:
M | types/classes.ha | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/types/classes.ha b/types/classes.ha @@ -34,9 +34,9 @@ export type slice = struct { // The slice contents. data: *void, - // The allocated capacity (in members) of data. - capacity: size, - // The number of members of the slice. length: size, + + // The allocated capacity (in members) of data. + capacity: size, };