OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Mon, 4 Apr 2022 14:55:06 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Mon, 4 Apr 2022 14:55:06 +0000 (23:55 +0900)
go.md
markdown.md
top.md

diff --git a/go.md b/go.md
index c122862..1ca0142 100644 (file)
--- a/go.md
+++ b/go.md
@@ -431,7 +431,7 @@ func main() {
   for _, item := range itemList {
     // Increment WaitGroup Counter
     wg.Add(1)
-    go doOperation(item)
+    go doOperation(&wg, item)
   }
   // Wait for goroutines to finish
   wg.Wait()
@@ -441,7 +441,7 @@ func main() {
 {: data-line="1,4,8,12"}
 
 ```go
-func doOperation(item string) {
+func doOperation(wg *sync.WaitGroup, item string) {
   defer wg.Done()
   // do operation on item
   // ...
index de9f2f9..1a31018 100644 (file)
@@ -107,6 +107,10 @@ ___bold italic___
 
 ### Code
 
+```markdown
+`inline code`
+```
+
 ```
     4 space indent
     makes a code block
diff --git a/top.md b/top.md
index 4b43b8d..1a9dfc3 100644 (file)
--- a/top.md
+++ b/top.md
@@ -19,5 +19,8 @@ intro: See the processes in your Unix machine.
 | `Shift+r` | reverses sorting      |
 | `Shift+l` | searches for string   |
 | `o`       | adds a filter         |
+| `u`       | filter user           |
 | `=`       | clears filters        |
+| `V`       | Forest view           |
+| `c`       | show full path        |
 {: .-shortcuts}