about summary refs log tree commit diff homepage
path: root/blog/conseq.md
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-24 16:09:04 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-24 16:09:04 +0700
commitd6b00e54d2c6765b59242044b6dba36531edd660 (patch)
tree7ac6d856a8c52143e7ec722e72e1070db8710967 /blog/conseq.md
parent6c2602852739dcd62b3c6484e21bcb8e580a42cc (diff)
downloadsite-d6b00e54d2c6765b59242044b6dba36531edd660.tar.gz
Improve note styling
Diffstat (limited to 'blog/conseq.md')
-rw-r--r--blog/conseq.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/blog/conseq.md b/blog/conseq.md
index 5b843eb..b9ea570 100644
--- a/blog/conseq.md
+++ b/blog/conseq.md
@@ -65,17 +65,17 @@ but since we will only evaluate the first few terms
 8
 ```
 
-@@note
-The `fibo_seq` above is just to demonstrate how `itertools.count`
-can be use to create an infinite sequence defined by a function.
-For better performance, this should be used instead:
+!!! note "Note"
 
-```python
-def fibonacci_sequence(a=0, b=1):
-    yield a
-    yield from fibonacci_sequence(b, a + b)
-```
-@@
+    The `fibo_seq` above is just to demonstrate how `itertools.count`
+    can be use to create an infinite sequence defined by a function.
+    For better performance, the following should be used instead:
+
+    ```python
+    def fibonacci_sequence(a=0, b=1):
+        yield a
+        yield from fibonacci_sequence(b, a+b)
+    ```
 
 It is noticable that the elements having been iterated through (using `next`)
 will disappear forever in the void (oh no!), but that is the cost we are