From 7745bd1b065f99517f8dbf360e3241a23967c644 Mon Sep 17 00:00:00 2001 From: Matthias Schimek Date: Wed, 10 Jul 2024 18:00:26 +0200 Subject: [PATCH] fix typo --- include/kamping/measurements/printer.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/include/kamping/measurements/printer.hpp b/include/kamping/measurements/printer.hpp index 10c22172..d688155d 100644 --- a/include/kamping/measurements/printer.hpp +++ b/include/kamping/measurements/printer.hpp @@ -69,12 +69,12 @@ template class SimpleJsonPrinter { public: /// @brief Construct a printer that use std::cout as outstream. - SimpleJsonPrinter() : _outstream{std::cout}, _interal_printer(_outstream) {} + SimpleJsonPrinter() : _outstream{std::cout}, _internal_printer(_outstream) {} /// @brief Construct a printer printing to a given outstream. /// /// @param outstream Outstream on which the content is printed. - SimpleJsonPrinter(std::ostream& outstream) : _outstream{outstream}, _interal_printer(_outstream) {} + SimpleJsonPrinter(std::ostream& outstream) : _outstream{outstream}, _internal_printer(_outstream) {} /// @brief Construct a printer printing to a given outstream and adding /// additional configuration info. @@ -84,7 +84,7 @@ class SimpleJsonPrinter { /// "config" - dict by the printer. SimpleJsonPrinter(std::ostream& outstream, std::vector> config_info) : _outstream{outstream}, - _interal_printer(_outstream), + _internal_printer(_outstream), _config_info{config_info} {} /// @brief Prints an evaluated TimerTree in Json format to stdout. @@ -105,7 +105,7 @@ class SimpleJsonPrinter { private: std::ostream& _outstream; ///< Outstream to print on. std::size_t indentation_per_level = 2u; - internal::ScalarOrVectorPrinter _interal_printer; ///< Internal printer able to print either a scalar or + internal::ScalarOrVectorPrinter _internal_printer; ///< Internal printer able to print either a scalar or ///< vector of durations. std::vector> _config_info; @@ -150,8 +150,7 @@ class SimpleJsonPrinter { } is_first_outer = false; _outstream << std::string(indentation + 2 * indentation_per_level, ' ') << "\"" << get_string(op) - << "\"" - << ": ["; + << "\"" << ": ["; bool is_first = true; for (auto const& data_item: data) { if (!is_first) {