Arduino Forum

Development => Other Software Development => Topic started by: TrashCompactor on Mar 22, 2016, 09:49 pm

Title: Correction/clarification needed to String and string documentation
Post by: TrashCompactor on Mar 22, 2016, 09:49 pm
The documentation for the String on this page
https://www.arduino.cc/en/Reference/StringObject
says: "Note that constant strings, specified in "double quotes" are treated as char arrays, not instances of the String class."

but the documentation on this string page (note string is not capitalized)
https://www.arduino.cc/en/Reference/String
says:"Strings are always defined inside double quotes ("Abc") and characters are always defined inside single quotes('A')."

How can a String always be defined with double quotes but constant strings in double quotes are treated as char arrays?
Title: Re: Correction/clarification needed to String and string documentation
Post by: pert on Mar 22, 2016, 11:33 pm
"Strings are always defined inside double quotes ("Abc") and characters are always defined inside single quotes('A')."

How can a String always be defined with double quotes but constant strings in double quotes are treated as char arrays?
They actually meant "strings are always defined inside double quotes ("Abc") and characters are always defined inside single quotes('A')." but they capitalized string in that sentence because it was the first word in the sentence, not because they were referring to a String. A string is a character array.
Title: Re: Correction/clarification needed to String and string documentation
Post by: TrashCompactor on Mar 23, 2016, 10:32 pm
I think that is an important capitalization error because of the understood meaning behind the capitalized "S".  Can this be updated or clarified in the documentation?