Skip to content

Commit 2d732ca

Browse files
refactor: tweak section titles (#275)
1 parent 9742d37 commit 2d732ca

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

src/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If a function argument is not used it must be
2525
prefixed with an underscore to explicitly mark it as
2626
unused.
2727

28-
## First-Class and Higher-Order Functions
28+
## Higher-Order Functions
2929

3030
A _higher-order function_ is a function that takes a
3131
parameter which is itself a function.

src/getting-started.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Once you have Java 21+ installed there are two ways to proceed:
2424
- You can use the [Flix VSCode extension](https://marketplace.visualstudio.com/items?itemName=flix.flix) (__highly recommended__) or
2525
- You can run the Flix compiler from the command line.
2626

27-
## Using Flix from Visual Studio Code (VSCode)
27+
## Using Flix from VSCode
2828

2929
Flix comes with a fully-featured VSCode plugin. Follow these steps to get
3030
started:
@@ -52,7 +52,7 @@ get started:
5252
nvim --version
5353
```
5454

55-
### Neovim Flix plugin
55+
### Neovim Plugin
5656

5757
There is a Lua [plugin](https://github.com/flix/nvim) which provides an LSP configuration for the native neovim lsp, and several functions to interact with the flix cli. It's repo has detailed installation and configuration instructions.
5858
It can be installed with a plugin manager of choice or cloned locally into your neovim runtime path.
@@ -117,7 +117,7 @@ The snippet above provides the following keybindings.
117117
118118
![Visual Studio Code1](images/neovim.png)
119119

120-
### Manual Neovim Configuration
120+
### Manual Configuration
121121

122122
If you would rather setup the LSP server yourself the code from the plugin is as follows.
123123

@@ -187,7 +187,7 @@ vim.api.nvim_create_autocmd("FileType", {
187187

188188
Flix can be used from [Emacs](https://www.gnu.org/software/emacs/) as well by installing the [flix-mode](https://codeberg.org/mdiin/flix-mode) package. Follow the instructions there to get started writing Flix code in Emacs.
189189

190-
## Using Flix from the Command Line
190+
## Using Flix from the CLI
191191

192192
Flix can also be used from the command line. Follow these steps:
193193

@@ -196,8 +196,7 @@ Flix can also be used from the command line. Follow these steps:
196196
> 3. Enter the created directory (e.g. `cd my-flix-project`) and run `java -jar flix.jar init` to create an empty Flix project.
197197
> 4. Run `java -jar flix.jar run` to compile and run the project.
198198
199-
200-
## Using nix
199+
## Installing Flix with Nix
201200

202201
Flix can also be installed using the [nix package manager](https://nixos.org/).
203202
To install for the currently running shell run:

src/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ always a 1:1 correspondence between the Flix language and what is reported in
2929
the editor. The advantages are many: (a) diagnostics are always exact, (b) code
3030
navigation "just works", and (c) refactorings are always correct.
3131

32-
## Look 'n' Feel
32+
## Look and Feel
3333

3434
Here are a few programs to illustrate the look and feel of Flix:
3535

src/primitive-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Primitive Types
1+
# Primitives
22

33
Flix supports the primitive types:
44

@@ -21,7 +21,7 @@ Flix supports the primitive types:
2121
written without suffix, i.e. `123.0f64` can simply be written
2222
as `123.0` and `123i32` can be written as `123`.
2323

24-
## Built-in Literals
24+
## Literals
2525

2626
Flix has built-in syntactic sugar for lists, sets, maps and regex.
2727

src/records.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let p2 = { -y | p1 };
8282
Here the record `p2` has the same labels as `p1` except that the `y` label has
8383
been removed.
8484

85-
## Row Polymorphism: Open and Closed Records
85+
## Row Polymorphism
8686

8787
A function may specify that it requires a record with two labels:
8888

@@ -104,7 +104,7 @@ def g(r: {x = Int32, y = Int32 | s}): Int32 = r#x + r#y
104104
We can call this function with *any* record as long as it has `x` and `y` labels
105105
which are of type `Int32`. We say that the record type of `r` is *open*.
106106

107-
## Named Parameters with Records
107+
## Named Parameters
108108

109109
When a function has multiple parameters that share the same type, it is easy to
110110
get confused about the right argument order. For example, what does

0 commit comments

Comments
 (0)