Document is correct
You can get actual data from below file. Please check it.
vendor/magento/framework/Setup/Declaration/Schema/etc/types/texts/char.xsd
Here plain text can be persisted without trailing spaces. The length of this field can't be more than 255 characters. When CHAR values are retrieved, trailing spaces are removed unless the PAD_CHAR_TO_FULL_LENGTH SQL mode is enabled.
db_schema.xml
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="test_char" resource="default" engine="innodb" comment="TEST CHAR DATA TYPE">
<column xsi:type="smallint" name="id" padding="6" unsigned="false" nullable="false" identity="true" comment="ID"/>
<column xsi:type="char" name="hash_val" nullable="false" length="255" comment="MD5"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
</table>
</schema>
Example Table Structure:
CHAR VS VARCHAR