reference-en icon indicating copy to clipboard operation
reference-en copied to clipboard

Update stringObject.adoc

Open robkwhitehouse opened this issue 4 years ago • 2 comments

The reference page shows that various initialization options are available as constructor parameters, but it does not show that existing String objects may also be assigned a new value, and it does not describe what types can be assigned to an existing String object.

robkwhitehouse avatar Jan 13 '21 14:01 robkwhitehouse

Also the documentation should clarify exactly what happens during assignment - i.e. is the donor array contents copied across, or does the recipient String object just receive a reference?

robkwhitehouse avatar Jan 13 '21 16:01 robkwhitehouse

So that it will be clear to other reviewers, I will add a note that this is not a complete PR, but more of a general proposal or request for the addition of a String assignment operator page, which does not exist at this time:

  • https://github.com/arduino/reference-en/tree/master/Language/Variables/Data%20Types/String/Operators
  • https://www.arduino.cc/reference/en/language/variables/data-types/string/operators/assignment/

per1234 avatar May 07 '22 19:05 per1234