as_str() replaced by str_view()

This commit is contained in:
Christoffer Lerno
2023-09-24 23:50:16 +02:00
parent 3675254af4
commit a1ecf2211f
31 changed files with 223 additions and 222 deletions

View File

@@ -11,6 +11,6 @@ fn void! test_writing()
ByteReader r;
String test_str = "2134";
s.read_from(r.init(test_str))!;
String o = foo.as_str();
String o = foo.str_view();
assert(o == "hello-what?-------------------------------------------------------2134");
}