@@ -280,13 +280,13 @@ defmodule File do
280280
281281 Typical error reasons are:
282282
283- * :eacces - Missing search or write permissions for the parent directories
284- of `path`.
285- * :eexist - There is already a file or directory named `path`.
286- * :enoent - A component of `path` does not exist.
287- * :enospc - There is a no space left on the device.
288- * :enotdir - A component of `path` is not a directory.
289- On some platforms, `:enoent` is returned instead.
283+ * ` :eacces` - Missing search or write permissions for the parent directories
284+ of `path`.
285+ * ` :eexist` - There is already a file or directory named `path`.
286+ * ` :enoent` - A component of `path` does not exist.
287+ * ` :enospc` - There is a no space left on the device.
288+ * ` :enotdir` - A component of `path` is not a directory.
289+ On some platforms, `:enoent` is returned instead.
290290 """
291291 @ spec mkdir ( Path . t ) :: :ok | { :error , posix }
292292 def mkdir ( path ) do
@@ -312,10 +312,10 @@ defmodule File do
312312
313313 Typical error reasons are:
314314
315- * :eacces - Missing search or write permissions for the parent directories
316- of `path`.
317- * :enospc - There is a no space left on the device.
318- * :enotdir - A component of `path` is not a directory.
315+ * ` :eacces` - Missing search or write permissions for the parent directories
316+ of `path`.
317+ * ` :enospc` - There is a no space left on the device.
318+ * ` :enotdir` - A component of `path` is not a directory.
319319 """
320320 @ spec mkdir_p ( Path . t ) :: :ok | { :error , posix }
321321 def mkdir_p ( path ) do
@@ -341,13 +341,13 @@ defmodule File do
341341
342342 Typical error reasons:
343343
344- * :enoent - The file does not exist.
345- * :eacces - Missing permission for reading the file,
346- or for searching one of the parent directories.
347- * :eisdir - The named file is a directory.
348- * :enotdir - A component of the file name is not a directory.
349- On some platforms, `:enoent` is returned instead.
350- * :enomem - There is not enough memory for the contents of the file.
344+ * ` :enoent` - The file does not exist.
345+ * ` :eacces` - Missing permission for reading the file,
346+ or for searching one of the parent directories.
347+ * ` :eisdir` - The named file is a directory.
348+ * ` :enotdir` - A component of the file name is not a directory.
349+ On some platforms, `:enoent` is returned instead.
350+ * ` :enomem` - There is not enough memory for the contents of the file.
351351
352352 You can use `:file.format_error/1` to get a descriptive string of the error.
353353 """
@@ -728,13 +728,13 @@ defmodule File do
728728
729729 Typical error reasons are:
730730
731- * :enoent - A component of the file name does not exist.
732- * :enotdir - A component of the file name is not a directory.
733- On some platforms, enoent is returned instead.
734- * :enospc - There is a no space left on the device.
735- * :eacces - Missing permission for writing the file or searching one of the
736- parent directories.
737- * :eisdir - The named file is a directory.
731+ * ` :enoent` - A component of the file name does not exist.
732+ * ` :enotdir` - A component of the file name is not a directory.
733+ On some platforms, enoent is returned instead.
734+ * ` :enospc` - There is a no space left on the device.
735+ * ` :eacces` - Missing permission for writing the file or searching one of the
736+ parent directories.
737+ * ` :eisdir` - The named file is a directory.
738738
739739 The writing is automatically done in `:raw` mode. Check
740740 `File.open/2` for other available options.
@@ -765,12 +765,12 @@ defmodule File do
765765
766766 Typical error reasons are:
767767
768- * :enoent - The file does not exist.
769- * :eacces - Missing permission for the file or one of its parents.
770- * :eperm - The file is a directory and user is not super-user.
771- * :enotdir - A component of the file name is not a directory.
772- On some platforms, enoent is returned instead.
773- * :einval - Filename had an improper type, such as tuple.
768+ * ` :enoent` - The file does not exist.
769+ * ` :eacces` - Missing permission for the file or one of its parents.
770+ * ` :eperm` - The file is a directory and user is not super-user.
771+ * ` :enotdir` - A component of the file name is not a directory.
772+ On some platforms, enoent is returned instead.
773+ * ` :einval` - Filename had an improper type, such as tuple.
774774
775775 ## Examples
776776
0 commit comments