diff --git a/components/filesystem.rst b/components/filesystem.rst index cf6166d78a5..3b6c92ad6fa 100644 --- a/components/filesystem.rst +++ b/components/filesystem.rst @@ -352,7 +352,7 @@ following rules iteratively until no further processing can be done: - root paths ("/" and "C:/") always terminate with a slash; - non-root paths never terminate with a slash; - schemes (such as "phar://") are kept; -- replace "~" with the user's home directory. +- replace ``~`` with the user's home directory. You can canonicalize a path with :method:`Symfony\\Component\\Filesystem\\Path::canonicalize`::