Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 418 Bytes

File metadata and controls

13 lines (9 loc) · 418 Bytes

Strings

Sway strings are declared using double-quotes ". Single quotes ' cannot be used. Attempting to define a string with single-quotes will result in an error.

{{#include ../../../code/misc/known-issues/string_issue/src/lib.sw:single_quotes}}

Strings are UTF-8 encoded therefore they cannot be indexed.

{{#include ../../../code/misc/known-issues/string_issue/src/lib.sw:indexing}}