~sircmpwn/harelang.org

4b79a4028e9e5b2534eac5a0b47d8e814d3b1766 — Olive a month ago 16fed81
Improve wording in Static Slice Oprations and fix program
1 files changed, 3 insertions(+), 3 deletions(-)

M content/tutorials/introduction.md
M content/tutorials/introduction.md => content/tutorials/introduction.md +3 -3
@@ 1667,7 1667,7 @@ sections:

      	let buf: [10]str = [""...];
      	let lines = buf[..0];
      	defer for (let line .. lines) {
      	defer for (let line .. buf) {
      		free(line);
      	};



@@ 1710,8 1710,8 @@ sections:
      number of strings, we start with a fixed buffer of ten empty strings, and
      create a zero-length slice from it: `buf[..0]`. Each of our append,
      delete, and insert operations is prefixed with the `static` keyword here,
      which prevents Hare from re-allocating a slice with insufficient storage
      space to perform the desired operation.
      which prevents Hare from re-allocating a slice if it has insufficient
      storage space to perform the desired operation.

      When using static slices, the burden lies with you to ensure that the
      program will not exceed the allocated space. Try entering more than 10