Skip to content

Commit cfc1df2

Browse files
committed
fixing cosmetics from open comments for merge to main
Signed-off-by: Helge Wehder <[email protected]>
1 parent a6119d1 commit cfc1df2

File tree

1 file changed

+1
-1
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-476

1 file changed

+1
-1
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-476/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The `is_valid_name()` function could get called with a null argument, which rais
4444

4545
## Compliant Code Example - Verify that the object is not None before accessing or modifying its fields
4646

47-
The `compliant solution` includes the same implementation as the previous `non-compliant example` but now checks if the string is `None`.
47+
The `compliant01.py` code includes the same implementation as the previous `noncompliant01.py` but now checks if the string is `None`.
4848

4949
The type hint `Optional [str]` can be added to the method signature to show that it could be called with `None` (where `Optional[X]` is equivalent to `X` | `None` or `Union[X, None]`).
5050

0 commit comments

Comments
 (0)