Skip to content

Commit 9a09e47

Browse files
committed
Some fixes to carbon-language#5914 noticed after merging
Several minor fixes to the content in the `README.md` were pointed out in review after merging that are fixed here. I also accidentally undid the removal of the legacy strategy document. I _think_ I got all of the critical content from this incorporated into the safety design section, but if there is more that I missed, please flag and I'm happy to improve that as part of this PR as well.
1 parent b5d86fd commit 9a09e47

File tree

2 files changed

+4
-776
lines changed

2 files changed

+4
-776
lines changed

docs/design/safety/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ migrating from C++. However, not _all_ unsafe code will omit the keyword, the
106106
permissive mode is designed to be minimal in the unsafe code allowed.
107107

108108
Modes can be configured on an individual file as part of the package
109-
declaration, or an a function body as part of the function definition. More
109+
declaration, or on a function body as part of the function definition. More
110110
options such as regions of declarations or regions of statements can be explored
111111
in the future based on demand in practice when working with mixed-strictness
112112
code. More fine grained than statements is not expected given that the same core
@@ -283,10 +283,9 @@ approach to achieving safety.
283283
While _cryptographic_ probabilistic techniques can, and typically do, work
284284
carefully to not be subject to these weaknesses, they face a very different
285285
challenge. The overhead of a cryptographically secure hash is generally
286-
prohibitive for use in language level constructs. Further, some of the defenses
287-
against hardware vulnerabilities and improvements further exacerbate these
288-
overheads. However, when these can be applied usefully such as with [PKeys],
289-
they are robust.
286+
prohibitive for use in language-level constructs. Further, some of the defenses
287+
against hardware vulnerabilities further exacerbate these overheads. However,
288+
when these can be applied usefully such as with [PKeys], they are robust.
290289

291290
[PKeys]: https://docs.kernel.org/core-api/protection-keys.html
292291

0 commit comments

Comments
 (0)