Skip to content

Commit 120d683

Browse files
authored
fix(sorting): fix readme to clarify instructions
1 parent f293df2 commit 120d683

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Array-Sort/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,15 @@ Depending upon what you want to do, you can use some of the simple sorting funct
77

88
In these lessons, we will take a quick look at the numerous ways to sorts slices, including:
99
* Sorting slices of primitives (Strings, Ints and Float64s)
10-
* Sorting slices of primitives or structs using a **Less Func** (less function)
10+
* Sorting slices of primitives or structs using a **Less Func** (less function)
11+
12+
## How to run the examples
13+
This project contains examples for two lessons:
14+
* Sorting primitives => sort_primitives.go
15+
* Sorting slices => sort_slices.go
16+
17+
Change the function that is being called in the main func of main.go.
18+
19+
To run the sorting primitives example, change main,go to call sortPrimitives().
20+
21+
To run the sorting slices example, change main.go to call sortSlices().

0 commit comments

Comments
 (0)