mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
fucking syntax highlighting
This commit is contained in:
parent
c5ac70f706
commit
f8da3b96ff
@ -63,7 +63,7 @@ We can define new types and functions with `struct`, `class`, `union`, and `enum
|
|||||||
are passed to functions by value (i.e. copied) and classes are passed by reference. Futhermore,
|
are passed to functions by value (i.e. copied) and classes are passed by reference. Futhermore,
|
||||||
we can use templates to parameterize all of these on both types and values!
|
we can use templates to parameterize all of these on both types and values!
|
||||||
|
|
||||||
```
|
```d
|
||||||
// Here, T is a type parameter. Think <T> from C++/C#/Java
|
// Here, T is a type parameter. Think <T> from C++/C#/Java
|
||||||
struct(T) LinkedList {
|
struct(T) LinkedList {
|
||||||
T data = null;
|
T data = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user