Code
Inline code
inline code and more inline code
Block code
fn plus_one(x: Option<i32>) -> Option<i32> {
match x {
None => None,
Some(i) => Some(i + 1),
}
}
let five = Some(5);
let six = plus_one(five);
let none = plus_one(None);
@@ -1,3 +1,9 @@
+This is an important
+notice! It should
+therefore be located at
+the beginning of this
+document!
+
This part of the
document has stayed the
same from version to
@@ -8,13 +14,8 @@
compress the size of the
changes.
-This paragraph contains
-text that is outdated.
-It will be deleted in the
-near future.
-
It is important to spell
-check this dokument. On
+check this document. On
the other hand, a
misspelled word isn't
the end of the world.
@@ -22,3 +23,7 @@
this paragraph needs to
be changed. Things can
be added after it.
+
+This paragraph contains
+important new additions
+to this document.
git submodule add -b latest https://github.com/isunjn/serene.git themes/serene
Line number
| 1 | fn plus_one(x: Option<i32>) -> Option<i32> {
|
| 2 | match x {
|
| 3 | None => None,
|
| 4 | Some(i) => Some(i + 1),
|
| 5 | }
|
| 6 | }
|
| 7 |
|
| 8 | let five = Some(5);
|
| 9 | let six = plus_one(five);
|
| 10 | let none = plus_one(None);
|
| 93 | fn plus_one(x: Option<i32>) -> Option<i32> {
|
| 94 | match x {
|
| 95 | None => None,
|
| 96 | Some(i) => Some(i + 1),
|
| 97 | }
|
| 98 | }
|
| 99 |
|
| 100 | let five = Some(5);
|
| 101 | let six = plus_one(five);
|
| 102 | let none = plus_one(None);
|
Highlight
| 1 | fn plus_one(x: Option<i32>) -> Option<i32> {
|
| 2 | match x {
|
| 3 | None => None,
|
| 4 | Some(i) => Some(i + 1),
|
| 5 | }
|
| 6 | }
|
| 7 |
|
| 8 | let five = Some(5);
|
| 9 | let six = plus_one(five);
|
| 10 | let none = plus_one(None);
|
Filename
fn plus_one(x: Option<i32>) -> Option<i32> {
match x {
None => None,
Some(i) => Some(i + 1),
}
}
let five = Some(5);
let six = plus_one(five);
let none = plus_one(None);
| 1 | fn plus_one(x: Option<i32>) -> Option<i32> {
|
| 2 | match x {
|
| 3 | None => None,
|
| 4 | Some(i) => Some(i + 1),
|
| 5 | }
|
| 6 | }
|
| 7 |
|
| 8 | let five = Some(5);
|
| 9 | let six = plus_one(five);
|
| 10 | let none = plus_one(None);
|