Skip to content

Commit

Permalink
fix: broken links, ignore DS_Store (FuelLabs#4695)
Browse files Browse the repository at this point in the history
fixes a couple broken links in the docs and adds .DS_Store to
.gitignore.
  • Loading branch information
sarahschwartz authored Jun 21, 2023
1 parent c66fc98 commit f65a5b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ sway-lib-std/Forc.lock
out

# Benchmarks data output directory
benchmarks/
benchmarks/

# .DS_Store
.DS_Store
4 changes: 2 additions & 2 deletions docs/book/src/advanced/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ trait Trait {
}
```

The initializer expression of an [associated constants](../basic/consts.md#associated-constants) in a trait definition may be omitted to indicate that each implementation of the `trait` for a given type must specify an initializer:
The initializer expression of an [associated constants](../basic/constants.md#associated-constants) in a trait definition may be omitted to indicate that each implementation of the `trait` for a given type must specify an initializer:

```sway
trait Trait {
const ID: u32;
}
```

Check the `associated consts` section on [constants](../basic/consts.md) page.
Check the `associated consts` section on [constants](../basic/constants.md) page.

## Use Cases

Expand Down

0 comments on commit f65a5b5

Please sign in to comment.