Rollup merge of #88673 - Qwaz:node-typo, r=jyn514

Fix typo: needede -> needed

Fix a typo in library/alloc/src/collections/btree/node.rs
This commit is contained in:
Ryan Levick 2021-09-06 12:38:57 +02:00 committed by GitHub
commit 0d4a51d741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1663,7 +1663,7 @@ pub mod marker {
const PERMITS_TRAVERSAL: bool = true;
}
impl BorrowType for Owned {
// Traversal isn't needede, it happens using the result of `borrow_mut`.
// Traversal isn't needed, it happens using the result of `borrow_mut`.
// By disabling traversal, and only creating new references to roots,
// we know that every reference of the `Owned` type is to a root node.
const PERMITS_TRAVERSAL: bool = false;