Skip to content

Commit 300b041

Browse files
authored
Fixes small formatting inconsistencies (#60)
Adds missing meta text (italics), unifies formatting and fixes some typos.
1 parent a36ccd1 commit 300b041

File tree

4 files changed

+31
-9
lines changed

4 files changed

+31
-9
lines changed

functions/user-defined-literals.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Functions: user-defined literals
2+
23
_Skeleton instructions are typeset in italic text._
34

45
## Overview
@@ -43,8 +44,10 @@ _Very brief introduction to the topic._
4344

4445
## Foundational: Using UDLs
4546

47+
4648
### Background/Required Knowledge
4749

50+
4851
A student:
4952
* knows how to form numeric literals, e.g., `1.5f` means a `float` of value `1.5`.
5053
* is familiar with the major C++ types:
@@ -58,7 +61,7 @@ A student:
5861

5962
### Student outcomes
6063

61-
_A list of things a student should be able to after the curriculum._
64+
_A list of things "a student should be able to" after the curriculum._
6265
_The next word should be an action word and testable in an exam._
6366
_Max 5 items._
6467

@@ -91,20 +94,33 @@ _This section lists important details for each point._
9194

9295
## Main: implementing UDLs
9396

94-
### Background/required knowledge
97+
98+
### Background/Required Knowledge
99+
95100

96101
* All of the above.
97102

98103
### Student outcomes
99104

105+
_A list of things "a student should be able to" after the curriculum._
106+
_The next word should be an action word and testable in an exam._
107+
_Max 5 items._
108+
100109
A student should be able to:
101110

102111
1. write a UDL operator of their own.
103112
2. separate unrelated UDLs into distinct namespaces.
104113

105114
### Caveats
115+
116+
_This section mentions subtle points to understand, like anything resulting in
117+
implementation-defined, unspecified, or undefined behavior._
118+
106119
No caveats at present.
107120
### Points to cover
121+
122+
_This section lists important details for each point._
123+
108124
No caveats at present.
109125
## Advanced
110126

object-model/copy-semantics.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# C++ object model: copy semantics
2+
23
_Skeleton instructions are typeset in italic text._
34

45
## Overview
@@ -40,8 +41,10 @@ Explains when and how objects are copied.
4041

4142
## Foundational: How and when are copies made
4243

44+
4345
### Background/Required Knowledge
4446

47+
4548
A student is able to:
4649
* explain what a C++ type is? [[C++ object model: types]][1]
4750
* explain what an object is? [[C++ object model: objects]][2], [[C++ object model: constant objects]][3]
@@ -88,8 +91,10 @@ _This section lists important details for each point._
8891

8992
## Main: Implementing user-defined copy operations
9093

94+
9195
### Background/Required Knowledge
9296

97+
9398
A student is able to:
9499
* identify special member functions [[C++ object model: special member functions]][5]
95100

@@ -132,8 +137,8 @@ _This section lists important details for each point._
132137

133138
## Advanced
134139

135-
_These are not expected to be covered but provide guidance where one can
136-
continue to investigate this topic in more depth._
140+
_These are important topics that are not expected to be covered but provide
141+
guidance where one can continue to investigate this topic in more depth._
137142

138143
When can copies be elided and when does the standard guarantee copy elision.
139144
References:

skeleton.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ A student:
4343

4444
### Student outcomes
4545

46-
_A list of things a student should be able to after the curriculum._
46+
_A list of things "a student should be able to" after the curriculum._
4747
_The next word should be an action word and testable in an exam._
4848
_Max 5 items._
4949

@@ -66,7 +66,7 @@ _This section lists important details for each point._
6666

6767
## Main: implementing *
6868

69-
### Background/required knowledge
69+
### Background/Required Knowledge
7070

7171
* All of the above.
7272

topic_updater.py

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
"""
23
Small tool for generating and fixing teaching topics.
34
@@ -196,8 +197,8 @@ def update_topic_meta_text(self, topic_file: tp.TextIO) -> tp.List[str]:
196197
return updated_topic_lines
197198

198199
def __process_existing_topic_content(
199-
self, topic_file: tp.TextIO,
200-
skeleton_headings_iter: tp.Iterator[SectionHeading]
200+
self, topic_file: tp.TextIO,
201+
skeleton_headings_iter: tp.Iterator[SectionHeading]
201202
) -> tp.List[str]:
202203
"""
203204
This method checks that all heading related lines in the topic file
@@ -262,7 +263,7 @@ def __process_existing_topic_content(
262263

263264
@staticmethod
264265
def __get_remaining_section_headings(
265-
skeleton_headings_iter: tp.Iterator[SectionHeading]
266+
skeleton_headings_iter: tp.Iterator[SectionHeading]
266267
) -> tp.List[str]:
267268
"""
268269
Returns a list of all `SectionHeading`s that are still missing and

0 commit comments

Comments
 (0)