From d6f2d44eaf22d45090f9b622d2cc1cff86cf9afc Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 4 May 2020 19:36:23 +0200 Subject: [PATCH] formatting --- cpp/Instances.md | 5 ++--- cpp/classes/README.md | 3 ++- lessons/Instances.md | 11 ++++++----- rust/Instances.md | 3 ++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cpp/Instances.md b/cpp/Instances.md index 8558bc3..949afb4 100644 --- a/cpp/Instances.md +++ b/cpp/Instances.md @@ -2,9 +2,8 @@ ## Language Specific -c++ is almost identical to java in this example. -The only difference here is that c++ doesn't require the object -to be initialized with the keyword 'new'. +c++ is almost identical to java in this example. The only difference here is +that c++ doesn't require the object to be initialized with the keyword 'new'. Relevant Files: diff --git a/cpp/classes/README.md b/cpp/classes/README.md index 9f64d7c..943c707 100644 --- a/cpp/classes/README.md +++ b/cpp/classes/README.md @@ -1,7 +1,8 @@ # Classes in C++ In c++ classes are defined using a header file and the implementation in a -regular .cpp file. Explanations to the structure can be found in the files themselves +regular .cpp file. Explanations to the structure can be found in the files +themselves ## Relevant files diff --git a/lessons/Instances.md b/lessons/Instances.md index c413cc9..9a0567d 100644 --- a/lessons/Instances.md +++ b/lessons/Instances.md @@ -7,10 +7,10 @@ Objects are generally used to keep data logically grouped and also make it easy to perform actions on them without having to account for all the logic at the time of using those functions. -As an example I have created a Car class. This is probably going to be the -main class used in all further lessons, since it has a lot of room for more data -and functions to add except for manufacturer, model and the function print_info -in this example. +As an example I have created a Car class. This is probably going to be the main +class used in all further lessons, since it has a lot of room for more data and +functions to add except for manufacturer, model and the function print_info in +this example. ```java /* @@ -47,7 +47,8 @@ a.print_info(); b.print_info(); ``` -The above example code together with the car class will create the following output: +The above example code together with the car class will create the following +output: ```text Car Information: diff --git a/rust/Instances.md b/rust/Instances.md index 5159a40..e7aa53a 100644 --- a/rust/Instances.md +++ b/rust/Instances.md @@ -3,7 +3,8 @@ ## Language specific - Rust doesn't use the 'new' keyword -- Classes in Rust require all attributes to be defined at all times, so you have to define all the data on creation. +- Classes in Rust require all attributes to be defined at all times, so you have + to define all the data on creation. Relevant Files