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.

    // Will error if uncommented
    // let fuel = 'fuel';

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

    let fuel = "fuel";
    // Will error if uncommented
    // let f = fuel[0];