Skip to content

Documentation: please mention the type of return functions. #11648

Closed as not planned
@rin67630

Description

@rin67630

The documentation of Functions should IMHO at least mention the type of the returned parameter(s).

E.g: https://www.arduino.cc/reference/en/language/variables/data-types/string/functions/length/

Returns

The length of the String in characters.

As what?
Integer, Byte, unsigned Integer?

Why isn't that mentioned?

How do you react on that error using the Arduino documentation?

error: format '%u' expects a matching 'unsigned int' argument [-Werror=format=]
         Console2.printf("\nTry conn' to %s (%u) , %s (%u) \n", ssid.c_str(), ssid.length(), pass.c_str()), pass.length();

Thank you for considering my request for the benefit of everybody.

Metadata

Metadata

Assignees

Labels

Component: DocumentationRelated to Arduino's documentation contentType: DuplicateAnother item already exists for this topic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions