Merge pull request #216 from PsychoLlama/master

Remove extra quote in strings example
This commit is contained in:
Stephen Chung 2020-08-14 16:43:00 +08:00 committed by GitHub
commit 95208e46ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ print("foo" < "bar"); // string comparison
print("foo" >= "bar"); // string comparison print("foo" >= "bar"); // string comparison
print("the answer is " + 42); // string building using non-string types print("the answer is " + 42); // string building using non-string types
let s = "\u2764" hello, world! \U0001F603"; // string variable let s = "\u2764 hello, world! \U0001F603"; // string variable
print("length=" + s.len); // should be 17 print("length=" + s.len); // should be 17
s[s.len-3] = '?'; // change the string s[s.len-3] = '?'; // change the string