Skip to content

Commit

Permalink
chore: adding fix to master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
signorecello committed Oct 24, 2023
1 parent 8d89cb5 commit 6b301aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
with:
branch-name: ${{ github.head_ref || github.ref }}
site-id: ${{ secrets.NETLIFY_SITE_ID }}
continue-on-error: true

- name: Debugging - print deploy_status
run: echo "${{ steps.check_deploy_status.outputs.deploy_status }}"
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/language_concepts/01_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,14 @@ fn main() {

Also note that impls with the same method name defined in them cannot overlap. For example, if we already have `foo` defined for `Foo<u32>` and `Foo<u64>` like we do above, we cannot also define `foo` in an `impl<T> Foo<T>` since it would be ambiguous which version of `foo` to choose.

```rs
```rust
// Including this impl in the same project as the above snippet would
// cause an overlapping impls error
impl<T> Foo<T> {
fn foo(self) -> Field { 3 }
}
```

## Lambdas

Lambdas are anonymous functions. They follow the syntax of Rust - `|arg1, arg2, ..., argN| return_expression`.
Expand Down

0 comments on commit 6b301aa

Please sign in to comment.