Skip to content

Commit

Permalink
Fix syntax in example in documentation (#392)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Zimmerberg <39104088+nhz2@users.noreply.github.com>
  • Loading branch information
PatrickHaecker and nhz2 authored Jul 18, 2024
1 parent c559dd1 commit 9fc2b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/registering.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 9fc2b47

Please sign in to comment.