Skip to content

Commit f0d16ee

Browse files
authored
fix(pitfalls.md): typo (#761)
1 parent c55817d commit f0d16ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/extras/pitfalls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ If you had instead tried to use the unprimed `induction` tactic, you would have
682682

683683
Note the presence of the `` in the tactic states. This represents a coercion, and it is one clue that the type of `n` might not be what you think it is.
684684

685-
Becuase of these problems and others, if you have `(s : Set X)` as a parameter and you want to assume that `a` is an element of `s`, it is often better to add two parameters `(a : X) (ha : a ∈ S)` than to write `(a : s)`.
685+
Because of these problems and others, if you have `(s : Set X)` as a parameter and you want to assume that `a` is an element of `s`, it is often better to add two parameters `(a : X) (ha : a ∈ S)` than to write `(a : s)`.
686686
Similarly, if you want `t` to be a subset of `s`, you should declare `(t : Set X) (h : t ⊆ s)` rather than `(t : Set s)`.
687687
Using this coercion from `Set`s to types should usually be reserved for cases where you need to pass in a `Set` to another function that requires a type as input.
688688

0 commit comments

Comments
 (0)