Skip to content

Commit

Permalink
ffi: Fix some missing errors and spelling mistakes in the KV-pair IR …
Browse files Browse the repository at this point in the history
…format docstrings. (#533)

Co-authored-by: Lin Zhihao <[email protected]>
  • Loading branch information
kirkrodrigues and LinZhihao-723 authored Sep 9, 2024
1 parent b6de798 commit e88122c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/core/src/clp/ffi/KeyValuePairLogEvent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class KeyValuePairLogEvent {
* @param node_id_value_pairs
* @param utc_offset
* @return A result containing the key-value pair log event or an error code indicating the
* failure. See `valdiate_node_id_value_pairs` for the possible error codes.
* failure. See `validate_node_id_value_pairs` for the possible error codes.
*/
[[nodiscard]] static auto create(
std::shared_ptr<SchemaTree const> schema_tree,
Expand Down
4 changes: 3 additions & 1 deletion components/core/src/clp/ffi/SchemaTree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ class SchemaTree {
* Inserts a new node corresponding to the given locator.
* @param locator
* @return The ID of the inserted node.
* @throw OperationFailed if a node that corresponds to the given locator already exists.
* @throw OperationFailed if:
* - a node that corresponds to the given locator already exists.
* - the parent node identified by the locator is not an object.
*/
[[maybe_unused]] auto insert_node(NodeLocator const& locator) -> SchemaTreeNode::id_t;

Expand Down
9 changes: 5 additions & 4 deletions components/core/src/clp/ffi/ir_stream/Deserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ class Deserializer {
* @param reader
* @return A result containing the deserialized log event or an error code indicating the
* failure:
* - std::errc::result_out_of_range if the IR stream is truncated
* - std::errc::protocol_error if the IR stream is corrupted
* - std::errc::no_message_available if the IR stream has been fully consumed.
* - std::errc::result_out_of_range if the IR stream is truncated.
* - std::errc::protocol_error if the IR stream is corrupted.
* - std::errc::protocol_not_supported if the IR stream contains an unsupported metadata format
* or uses an unsupported version
* or uses an unsupported version.
* - Same as `KeyValuePairLogEvent::create` if the intermediate deserialized result cannot
* construct a valid key-value pair log event
* construct a valid key-value pair log event.
*/
[[nodiscard]] auto deserialize_to_next_log_event(ReaderInterface& reader
) -> OUTCOME_V2_NAMESPACE::std_result<KeyValuePairLogEvent>;
Expand Down

0 comments on commit e88122c

Please sign in to comment.