diff --git a/doc/langref.html.in b/doc/langref.html.in index b08e859f958706c1969a9d24a4e9086eacc38e51..8f9874c27632d638146120263d863fcbd61018e4 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3018,7 +3018,7 @@ test "basic slices" { slice[10] += 1; // Note that `slice.ptr` does not invoke safety checking, while `&slice[0]` - // asserts that the slice has len >= 1. + // asserts that the slice has len > 0. } {#code_end#}

This is one reason we prefer slices to pointers.