From f7114f5352372f0078a2a8f72f585d772265152f Mon Sep 17 00:00:00 2001 From: PatrickHaecker <152268010+PatrickHaecker@users.noreply.github.com> Date: Wed, 10 Jul 2024 07:39:13 +0200 Subject: [PATCH] Fix syntax in example in documentation --- docs/src/registering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/registering.md b/docs/src/registering.md index 6063ec8e..07372107 100644 --- a/docs/src/registering.md +++ b/docs/src/registering.md @@ -15,7 +15,7 @@ Before going into detail explaining the arguments of `add_format`, here is a real example that could be used to register an I/O package for one of the [Netpbm image formats](https://en.wikipedia.org/wiki/Netpbm#File_formats): ``` -add_format(format"PPMBinary", "P6", ".ppm", [:Netpbm => UUID("f09324ee-3d7c-5217-9330-fc30815ba969")] +add_format(format"PPMBinary", "P6", ".ppm", [:Netpbm => UUID("f09324ee-3d7c-5217-9330-fc30815ba969")]) ``` Briefly, this indicates that files in this format typically have extension `.ppm`, the file contents typically start with "P6" (the byte sequence `[0x50, 0x36]`), and these files can be read and written by the [Netpbm package](https://github.com/JuliaIO/Netpbm.jl). (The `UUID` is Julia's unique identifier for this registered package and can be obtained from the `Project.toml` file.)