Skip to content

Commit

Permalink
📝 Fix small documentation inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelwa committed Nov 22, 2023
1 parent 7099573 commit 4afe6e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/io/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Gate-level Layouts
.. autofunction:: mnt.pyfiction.read_shifted_cartesian_fgl_layout
.. autofunction:: mnt.pyfiction.read_hexagonal_fgl_layout

.. autoclass:: mnt.pyfiction.fgl_parsing_error
:members:


Cell-level Layouts
##################
Expand Down
12 changes: 6 additions & 6 deletions include/fiction/io/read_fgl_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class fgl_parsing_error : public std::runtime_error
{
public:
/**
* Constructs a fgl_parsing_error object with the given error message.
* Constructs a `fgl_parsing_error` object with the given error message.
*
* @param msg The error message describing the parsing error.
*/
Expand Down Expand Up @@ -714,7 +714,7 @@ class read_fgl_layout_impl
/**
* Reads a gate-level layout from an FGL file provided as an input stream.
*
* May throw an `fgl_parsing_exception` if the FGL file is malformed.
* May throw an `fgl_parsing_error` if the FGL file is malformed.
*
* @tparam Lyt The layout type to be created from an input.
* @param is The input stream to read from.
Expand All @@ -734,9 +734,9 @@ template <typename Lyt>
/**
* Reads a gate-level layout from an FGL file provided as an input stream.
*
* May throw an `fgl_parsing_exception` if the FGL file is malformed.
* May throw an `fgl_parsing_error` if the FGL file is malformed.
*
* This is an in-place version of read_fgl_layout that utilizes the given layout as a target to write to.
* This is an in-place version of `read_fgl_layout` that utilizes the given layout as a target to write to.
*
* @tparam Lyt The layout type to be used as input.
* @param lyt The layout to write to.
Expand All @@ -754,7 +754,7 @@ void read_fgl_layout(Lyt& lyt, std::istream& is)
/**
* Reads a gate-level layout from an FGL file provided as an input stream.
*
* May throw an `fgl_parsing_exception` if the FGL file is malformed.
* May throw an `fgl_parsing_error` if the FGL file is malformed.
*
* @tparam Lyt The layout type to be created from an input.
* @param filename The file name to open and read from.
Expand All @@ -778,7 +778,7 @@ template <typename Lyt>
/**
* Reads a gate-level layout from an FGL file provided as an input stream.
*
* May throw an `fgl_parsing_exception` if the FGL file is malformed.
* May throw an `fgl_parsing_error` if the FGL file is malformed.
*
* This is an in-place version of `read_fgl_layout` that utilizes the given layout as a target to write to.
*
Expand Down

0 comments on commit 4afe6e9

Please sign in to comment.